Screen control method and device, mobile terminal and storage medium

By using the processor to determine and wake up the resource manager's wake-up state, the problem of user operation response failure when the touchscreen is off is solved, achieving timely response and improving user experience.

CN115237479BActive Publication Date: 2026-04-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-04-25
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

When the touchscreen is off, user operations fail to respond, impacting the user experience.

Method used

The processor determines the wake-up state of the resource manager and wakes it up to a fully awake state when it is in a sleep state in order to obtain screen operation data.

Benefits of technology

Ensure timely response to user actions even when the screen is off, avoid response failures caused by latency, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237479B_ABST
    Figure CN115237479B_ABST
Patent Text Reader

Abstract

The present disclosure provides a screen control method and device, a mobile terminal and a storage medium. The method comprises: when the screen is in a first state, in response to an input interrupt instruction, sending an interrupt signal corresponding to the interrupt instruction to a processor; the processor judges the wake-up state of a resource manager; when the resource manager is in a second state, the processor wakes up the resource manager; and in response to the resource manager being in a third state, the processor acquires corresponding operation data on the screen through the resource manager. In the present disclosure, when the processor receives the interrupt signal corresponding to the interrupt instruction, the wake-up state of the resource manager can be immediately judged, and then if the resource manager is in the second state, the resource manager can be timely woken up to reach the third state, so that the corresponding operation data on the screen can be acquired through the resource manager, response failure caused by time delay can be avoided, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of terminal, in particular to a screen control method and device, a mobile terminal and a storage medium. BACKGROUND

[0002] In modern society, mobile terminals such as mobile phones have become an indispensable part, bringing great convenience to daily life and work. With the continuous development of mobile terminals, touch screens have been more and more widely used, and people can operate mobile terminals through touch screens.

[0003] However, when the touch screen is in a screen-off state, the user operation on it may fail to respond, which seriously affects the user experience of the mobile terminal. SUMMARY

[0004] In view of the above defects or shortcomings in the related art, it is desirable to provide a screen control method and device, a mobile terminal and a storage medium, which can ensure that the screen can respond to user operations in time in a screen-off state, thereby improving user experience.

[0005] In a first aspect, the present disclosure provides a screen control method, comprising:

[0006] When the screen is in a first state, in response to an input interrupt instruction, an interrupt signal corresponding to the interrupt instruction is sent to a processor;

[0007] The processor determines the wake-up state of a resource manager,

[0008] When the resource manager is in a second state, the processor wakes up the resource manager, and in response to the resource manager being in a third state, the processor acquires corresponding operation data on the screen through the resource manager.

[0009] Optionally, in some embodiments of the present disclosure, before the processor determines the wake-up state of the resource manager, when the processor receives the interrupt signal, if the processor is executing a historical task, the resources of the processor are allocated.

[0010] Optionally, in some embodiments of the present disclosure, if the wake-up state is the second state, the processor wakes up the resource manager, and if the wake-up state is still not changed after exceeding a first time threshold, the processor continues to wake up until the wake-up state is the third state.

[0011] Optionally, in some embodiments of the present disclosure, when the wake-up time exceeds the first time threshold each time, the processor adjusts the upper limit of the first time threshold to a second time threshold.

[0012] Optionally, in some embodiments of the present disclosure, the resource manager acquires the operation data through the main line.

[0013] In a second aspect, the present disclosure provides a screen control device, the device comprising:

[0014] a sending module configured to send an interrupt signal corresponding to the interrupt instruction to the processor in response to the input interrupt instruction when the screen is in the first state;

[0015] a judging module configured to judge a wake-up state of the resource manager,

[0016] wake up the resource manager when the resource manager is in the second state, and acquire the corresponding operation data on the screen through the resource manager in response to the resource manager being in the third state.

[0017] Optionally, in some embodiments of the present disclosure, the device further comprises:

[0018] a resource allocation module configured to, before the judging module judges the wake-up state of the resource manager, allocate resources of the processor when the processor receives the interrupt signal, if the processor is executing a historical task.

[0019] Optionally, in some embodiments of the present disclosure, the judging module is further configured to, if the wake-up state is the second state, wake up the resource manager, and continue to wake up if the resource manager is not woken up beyond a first time threshold until the wake-up state is the third state.

[0020] In a third aspect, the present disclosure provides a mobile terminal, the mobile terminal comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the instruction, the program, the code set or the instruction set being loaded and executed by the processor to implement the steps of the screen control method according to any one of the first aspect.

[0021] In a fourth aspect, the present disclosure provides a computer-readable storage medium, the computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the screen control method according to any one of the first aspect.

[0022] As can be seen from the above technical solutions, the embodiments of the present disclosure have the following advantages:

[0023] The embodiment of the present disclosure provides a screen control method, device, mobile terminal and storage medium, in the case that the screen is in the first state, when the processor receives the interrupt signal corresponding to the interrupt instruction, the wake-up state of the resource manager can be immediately judged, and then if the resource manager is in the second state, the resource manager can be woken up in time to reach the third state, so that the corresponding operation data on the screen can be obtained through the resource manager, the response failure caused by the time delay is avoided, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0024] Other features, objects and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments made with reference to the accompanying drawings:

[0025] Figure 1 A basic flow diagram of a screen control method provided by the embodiment of the present disclosure is provided.

[0026] Figure 2 A basic structure diagram of a screen control device provided by the embodiment of the present disclosure is provided.

[0027] Figure 3 A structure diagram of another screen control device provided by the embodiment of the present disclosure is provided.

[0028] Figure 4 A structure block diagram of a mobile terminal provided by the embodiment of the present disclosure is provided. DETAILED DESCRIPTION

[0029] In order to make the person skilled in the art better understand the present disclosure scheme, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present disclosure.

[0030] The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the described embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein.

[0031] Furthermore, the term "comprising" and "including" and their variants are intended to cover both the express steps / elements as well as those that are inherent to the process / method / system / product / device. The term "consisting essentially of" is intended to mean that the process / method / system / product / device includes the steps / elements as expressly recited, plus any additional steps / elements that do not materially affect the basic and novel characteristics of the process / method / system / product / device.

[0032] For the purpose of facilitating understanding and illustration, the following describes the screen control method, device, mobile terminal and storage medium provided by the embodiments of the present disclosure by means of Figures 1 to 4 The screen control method, device, mobile terminal and storage medium provided by the embodiments of the present disclosure are described in detail.

[0033] Reference is made to Figure 1 which is a basic flow diagram of a screen control method provided by the embodiments of the present disclosure. The method comprises the following steps:

[0034] S101, when the screen is in a first state, in response to an input interrupt instruction, an interrupt signal corresponding to the interrupt instruction is sent to a processor.

[0035] Exemplarily, the first state in the embodiments of the present disclosure is an off-screen state, which can include but is not limited to a black screen state in which the screen does not emit light, or a low-power-consumption state in which the screen displays a pattern. At this time, user operation of the screen will generate a corresponding interrupt instruction, wherein the user operation can include but is not limited to a gesture operation or a Fingerprint on Display (FOD) unlocking operation. Taking the screen as a touch screen for example, the screen will light up after the user double-clicks the touch screen; for another example, the user will start the camera to take a photo by drawing a circle on the touch screen.

[0036] In addition, the interrupt refers to an event that occurs during the running of a program, which must be immediately processed by the Central Processing Unit (CPU) of the mobile terminal, at which time the processor temporarily suspends the program to process the new event.

[0037] S102, the processor judges the wake-up state of the resource manager, if the resource manager is in a second state, S103 is executed; if the resource manager is in a third state, S104 is executed.

[0038] It should be noted that the resource manager is a system service responsible for managing persistent data in a database, a persistent message queue or a transactional file system, for storing data and performing fault recovery. The second state in the embodiments of the present disclosure refers to a hibernation state or an incomplete wake-up state, and the third state refers to a complete wake-up state.

[0039] Optionally, some embodiments of the present disclosure allocate resources to the processor if the processor is executing a historical task when the processor receives the interrupt signal before the processor determines the wake-up state of the resource manager. The advantage of this arrangement is that the processor can prioritize determining the wake-up state of the resource manager, so that the resource manager can be called in time when it is needed to obtain the operation data on the screen through the resource manager, thereby avoiding waiting and improving processing efficiency.

[0040] S103, when the resource manager is in the second state, the processor wakes up the resource manager.

[0041] Illustratively, the embodiments of the present disclosure first wake up the background system according to the interrupt instruction, and then wake up the resource manager through the power management interface of the screen. For example, the embodiments of the present disclosure set the interrupt type generated by the screen as a wake-up system interrupt, so that an interrupt instruction is generated when the user operates the screen, thereby waking up the background system. Further, the control logic for waking up the resource manager is set in the power management interface of the screen, that is, the resource manager is woken up in the wake-up logic of the power management, and the resource manager is put to sleep in the sleep logic of the power management.

[0042] Optionally, in some embodiments of the present disclosure, if the wake-up state is the second state, the processor wakes up the resource manager, and if the resource manager is not woken up after exceeding the first time threshold, the processor continues to wake up until the wake-up state is the third state. For example, the first time threshold is 300 ms, so that the resource manager can be completely woken up, and the corresponding operation data on the screen can be obtained through the resource manager. Further, when the wake-up time exceeds the first time threshold each time, the processor can automatically adjust the upper limit of the first time threshold to the second time threshold, for example, adjust the upper limit of the first time threshold from 300 ms to 600 ms, that is, the second time threshold is 600 ms, so that the resource manager can be woken up once, thereby greatly improving the processing efficiency.

[0043] S104, when the resource manager is in the third state, the processor obtains the corresponding operation data on the screen through the resource manager.

[0044] Illustratively, in the embodiments of the present disclosure, the resource manager can obtain the operation data through the main line, where the main line can include but is not limited to the I2C (Inter-Integrated Circuit) main line or the SPI (Serial Peripheral Interface) main line. 2 C (Inter-Integrated Circuit, internal integrated circuit) main line or SPI (Serial Peripheral Interface) main line.

[0045] The embodiment of the present disclosure provides a screen control method, in the case that the screen is in a first state, when the processor receives an interrupt signal corresponding to an interrupt instruction, the wake-up state of a resource manager can be immediately judged, and then if the resource manager is in a second state, the resource manager can be woken up in time to reach a third state, so that the corresponding operation data on the screen can be obtained through the resource manager, response failure caused by time delay is avoided, and user experience is improved.

[0046] Based on the foregoing embodiment, refer to Figure 2 , which is a basic structure diagram of a screen control device provided by the embodiment of the present disclosure, and the device can be applied to Figure 1 The screen control method provided by the corresponding embodiment. As Figure 2 shown, the screen control device 100 comprises:

[0047] The sending module 101 is configured to, when the screen is in a first state, send an interrupt signal corresponding to an interrupt instruction to the processor in response to the input interrupt instruction;

[0048] The judging module 102 is configured to judge the wake-up state of the resource manager, wake up the resource manager when the resource manager is in a second state, and obtain the corresponding operation data on the screen through the resource manager in response to the resource manager being in a third state.

[0049] Optionally, in some embodiments of the present disclosure, as Figure 3 shown, the screen control device 100 further comprises:

[0050] The resource allocation module 103 is configured to, before the judging module 102 judges the wake-up state of the resource manager, if the processor is executing a historical task when the processor receives the interrupt signal, allocate resources of the processor.

[0051] Optionally, in some embodiments of the present disclosure, the judging module 102 is further configured to, if the wake-up state is the second state, wake up the resource manager, and continue to wake up if the resource manager is still not woken up beyond a first time threshold, until the wake-up state is the third state.

[0052] Optionally, in some embodiments of the present disclosure, the judging module 102 is further configured to, when the wake-up time exceeds the first time threshold each time, adjust the upper limit of the first time threshold to a second time threshold.

[0053] Optionally, in some embodiments of the present disclosure, the resource manager obtains the operation data through a main line.

[0054] It should be noted that the description of the same steps and the same content in the present embodiment and other embodiments can refer to the description in other embodiments, which will not be repeated here.

[0055] The screen control apparatus provided by the embodiments of the present disclosure includes a sending module configured to send an interrupt signal corresponding to the interrupt instruction to the processor in response to the input interrupt instruction when the screen is in the first state; and a judging module configured to judge the wake-up state of the resource manager, wake up the resource manager when the resource manager is in the second state, and acquire the corresponding operation data on the screen through the resource manager in response to the resource manager being in the third state. In the screen control apparatus provided by the embodiments of the present disclosure, the judging module can immediately judge the wake-up state of the resource manager when the judging module receives the interrupt signal corresponding to the interrupt instruction, and then if the resource manager is in the second state, the resource manager can be woken up in time to reach the third state, so that the corresponding operation data on the screen can be acquired through the resource manager, the response failure caused by time delay is avoided, and the user experience is improved.

[0056] Based on the foregoing embodiments, refer to Figure 4 The mobile terminal 200 includes a processor 2001 and a memory 2002, where the processor 2001 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2001 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA).

[0057] The processor 2001 can also include a main processor and a coprocessor. The main processor is a processor for processing data in a wake-up state, also known as a central processor. The coprocessor is a low-power processor for processing data in a standby state.

[0058] In addition, the processor 2001 can be integrated with a graphics processor (GPU) for rendering and drawing the content required to be displayed on the screen. In some embodiments, the processor 2001 can also include an artificial intelligence (AI) processor for processing machine learning-related computing operations.

[0059] The memory 2002 can include one or more computer-readable storage media. The computer-readable storage media can be non-transitory. The memory 2002 can also include high-speed random access memory and can include non-volatile memory, such as one or more magnetic disk storage devices, optical storage devices, flash memory devices, or other non-volatile solid-state storage devices. In some embodiments, the non-transitory computer-readable storage medium of the memory 2002 is used for storing the at least one program for being executed by the processor 2001 to implement the screen control method provided in the method embodiments of the present disclosure.

[0060] In some embodiments, the mobile terminal 200 can further include a peripheral device interface 2003 and at least one peripheral device. The processor 2001, the memory 2002, and the peripheral device interface 2003 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 2003 through a bus, a signal line, or a circuit board.

[0061] Specifically, the peripheral devices include, but are not limited to, a radio frequency circuit 2004, a screen 2005, and a power supply 2006. The peripheral device interface 2003 can be used to connect the at least one peripheral device related to input / output (I / O) to the processor 2001 and the memory 2002. In some embodiments, the processor 2001, the memory 2002, and the peripheral device interface 2003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2001, the memory 2002, and the peripheral device interface 2003 can be implemented on a separate chip or circuit board, and the embodiments of the present disclosure do not limit this.

[0062] The radio frequency circuit 2004 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 2004 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 2004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 2004 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 2004 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to, a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a wireless fidelity (WiFi) network. In some embodiments, the radio frequency circuit 2004 can also include near field communication (NFC) related circuitry.

[0063] The screen 2005 is configured to display a user interface (UI). The UI can include graphics, text, icons, video, and any combination thereof. The screen 2005 has the ability to sense touch signals from or above its surface, which can be input as control signals to the processor 2001 for processing. At this time, the screen 2005 can also be configured to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the screen 2005 can be one, disposed on the front panel of the mobile terminal 200; in other embodiments, the screen 2005 can be at least two, respectively disposed on different surfaces of the mobile terminal 200 or in a folding design; in yet other embodiments, the screen 2005 can be a flexible screen, disposed on a curved surface or a folding surface of the mobile terminal 200. Even, the screen 2005 can also be disposed in an irregular shape other than a rectangle, i.e., a special-shaped screen. The screen 2005 can be made of a material such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0064] Those skilled in the art can understand that Figure 4 The structure shown in the foregoing embodiments does not constitute a limitation on the mobile terminal 200, and can include more or fewer components than those shown, or combine certain components, or arrange the components differently.

[0065] It should be noted that the mobile terminal 200 involved in the embodiments of the present disclosure can include, but is not limited to, a personal digital assistant (PDA), a tablet computer, a wireless handheld device, a mobile phone, etc.

[0066] As another aspect, the embodiments of the present disclosure provide a computer-readable storage medium for storing program code for executing any one of the foregoing various embodiments of the screen control method.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and module can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein.

[0068] In several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method can be implemented in other manners. For example, the apparatus embodiments described above are merely schematic. For example, the division of the modules is merely logical function division. There can be another division manner for the actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different modules can be indirect couplings or communication connections through some interfaces, devices or modules, and can be in electrical, mechanical or other forms.

[0069] In addition, each functional module in each embodiment of the present disclosure can be integrated in one processing unit, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated unit can be realized in the form of hardware or in the form of a software functional unit. If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.

[0070] Based on such understanding, the technical solutions of the present disclosure, essentially or in other words, the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the screen control method according to the embodiments of the present disclosure. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.

[0071] It should be noted that the above embodiments are merely used to illustrate the technical solutions of the present disclosure, but not limit it; although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A screen control method characterized by, The method comprises: When the screen is in a first state, an interrupt signal corresponding to an input interrupt instruction is sent to a processor in response to the input interrupt instruction, the first state comprising a black screen state in which the screen does not emit light or a low-power consumption state in which the screen displays a pattern; The processor determines a wake-up state of a resource manager, the resource manager being a system service responsible for managing persistent data in a database, a persistent message queue or a transactional file system, for storing data and performing fault recovery; When the resource manager is in a second state, the processor wakes up the resource manager, and in response to the resource manager being in a third state, obtains corresponding operation data on the screen through the resource manager, the second state being a hibernation state or an incomplete wake-up state, and the third state being a complete wake-up state; the wake-up of the resource manager comprises first waking up a background system according to the interrupt instruction and then waking up the resource manager through a power management interface of the screen; If the wake-up state is the second state, the processor wakes up the resource manager, and if the resource manager has not woken up after exceeding a first time threshold, the wake-up continues until the wake-up state is the third state. When the wake-up time exceeds the first time threshold each time, the processor adjusts an upper limit of the first time threshold to a second time threshold.

2. The screen control method according to claim 1, characterized by, Before the processor determines the wake-up state of the resource manager, if the processor is executing a historical task when the processor receives the interrupt signal, the processor allocates resources.

3. The screen control method according to claim 1, characterized by, The resource manager obtains the operation data through a main line, the main line comprising an internal integrated circuit main line or a serial peripheral interface main line.

4. A screen control device, characterized by The device comprises: a sending module configured to send an interrupt signal corresponding to an input interrupt instruction to a processor in response to the input interrupt instruction when a screen is in a first state, the first state comprising a black screen state in which the screen does not emit light or a low-power consumption state in which the screen displays a pattern; a determining module configured to determine a wake-up state of a resource manager, When the resource manager is in a second state, the processor wakes up the resource manager, and in response to the resource manager being in a third state, obtains corresponding operation data on the screen through the resource manager, the second state being a hibernation state or an incomplete wake-up state, and the third state being a complete wake-up state; the wake-up of the resource manager comprises first waking up a background system according to the interrupt instruction and then waking up the resource manager through a power management interface of the screen; If the wake-up state is the second state, the processor wakes up the resource manager, and if the resource manager has not woken up after exceeding a first time threshold, the wake-up continues until the wake-up state is the third state. When each wake-up time exceeds the first time threshold, the processor adjusts an upper limit of the first time threshold to a second time threshold.

5. The screen control apparatus according to claim 4, characterized by The apparatus further includes: The resource allocation module is configured to, before the judgment module judges the wake-up state of the resource manager, when the processor receives the interrupt signal, if the processor is executing a historical task, allocate resources of the processor.

6. A mobile terminal, characterized by The mobile terminal includes a processor and a memory, the memory stores at least one instruction, at least one program, a code set or an instruction set, the instruction, the program, the code set or the instruction set is loaded and executed by the processor to realize the steps of the screen control method in any one of claims 1 to 3.

7. A computer readable storage medium characterized in that, The computer readable storage medium stores one or more programs, the one or more programs can be executed by one or more processors to realize the steps of the screen control method in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Screen display control method and device

    CN108650423A

  • Terminal awakening method, terminal and computer storage medium

    CN112114883A