CN112351482A - Method and device for automatically controlling terminal dormancy and computer readable storage medium - Google Patents

Method and device for automatically controlling terminal dormancy and computer readable storage medium Download PDF

Info

Publication number
CN112351482A
CN112351482A CN202011185056.0A CN202011185056A CN112351482A CN 112351482 A CN112351482 A CN 112351482A CN 202011185056 A CN202011185056 A CN 202011185056A CN 112351482 A CN112351482 A CN 112351482A
Authority
CN
China
Prior art keywords
terminal
sleep
operation state
control
automatically controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011185056.0A
Other languages
Chinese (zh)
Inventor
王云华
田奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011185056.0A priority Critical patent/CN112351482A/en
Publication of CN112351482A publication Critical patent/CN112351482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for automatically controlling terminal dormancy and a computer readable storage medium, wherein the method comprises the following steps: after establishing connection with a terminal, detecting whether the terminal is in a no-operation state; when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data; if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state. The invention solves the problem that the mobile terminal is lack of sleep control when the sleep mode is not set, realizes automatic control of the sleep of the mobile terminal through real-time detection and judgment of the sleep condition, and improves the use experience of users.

Description

Method and device for automatically controlling terminal dormancy and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for automatically controlling terminal hibernation, and a computer-readable storage medium.
Background
With the increasing popularity and richness of functions of mobile terminals, the role of mobile terminals in people's lives has become more important. However, due to the limitation of the battery level of the mobile terminal, people cannot use the mobile terminal for a long time. In order to prolong the endurance time of the mobile terminal, a method of making the mobile terminal enter a sleep state without being used is generally adopted to save the battery power. The conventional technology requires a user to set a sleep time before the mobile terminal enters the sleep state. For example, a sleep time of three minutes is set, and the mobile terminal enters a sleep state after three minutes of no operation. However, if the user does not set the sleep time, the mobile terminal still operates after the user finishes using the mobile terminal, and a large amount of power is consumed.
Disclosure of Invention
The embodiment of the application solves the problem that the mobile terminal lacks sleep control when a sleep mode is not set through providing a method and a device for automatically controlling terminal sleep and a computer readable storage medium.
The embodiment of the application provides a method for automatically controlling terminal dormancy, which comprises the following steps:
after establishing connection with a terminal, detecting whether the terminal is in a no-operation state;
when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data;
if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data;
and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state.
In an embodiment, the step of detecting whether the terminal is in a no-operation state further includes:
sending an instruction to the terminal to control the terminal to start the no-operation state timing;
and when detecting that the timing of the no-operation state reaches a preset value, sending an instruction to the terminal to control the terminal to enter a dormant state.
In an embodiment, after the step of sending the instruction to the terminal to control the terminal to start the no-operation state timing, the method further includes:
and if the non-operation state timing is detected to be interrupted, sending an instruction to the terminal to control the terminal to reset the non-operation state timing.
In an embodiment, after the step of determining whether the terminal generates the displacement meeting the preset condition according to the sensor data, the method further includes:
and if the terminal is judged not to generate the displacement meeting the preset condition, continuously detecting whether the terminal is in a no-operation state.
In an embodiment, after the step of determining whether the terminal is placed according to the image pickup data, the method further includes:
and if the terminal is not placed, continuously detecting whether the terminal is in a no-operation state.
In one embodiment, the entering into the sleep state includes turning off a display screen and/or cleaning up running applications.
In an embodiment, before the step of sending the instruction to the terminal to control the terminal to enter the sleep state, the method further includes:
and acquiring the application running by the terminal and recording the application.
In an embodiment, the method further comprises:
and when detecting that the terminal exits the sleep state, sending an instruction to the terminal to control the terminal to start the recorded application.
The embodiment of the present application further provides an apparatus, where the apparatus includes a processor, a memory, and an automatic control terminal hibernation program stored in the memory and capable of running on the processor, and when the automatic control terminal hibernation program is executed by the processor, the method for automatically controlling terminal hibernation as described above is implemented.
An embodiment of the present application further provides a computer-readable storage medium, where an automatic control terminal hibernation program is stored in the computer-readable storage medium, and when the automatic control terminal hibernation program is executed by a processor, the steps of the method for automatically controlling terminal hibernation as described above are implemented.
The technical solutions of the method and the device for automatically controlling terminal dormancy and the computer-readable storage medium provided in the embodiments of the present application have at least the following technical effects:
after the connection with the terminal is established, whether the terminal is in a non-operation state is detected; when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data; if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state. Therefore, the problem that the mobile terminal lacks of sleep control when the sleep mode is not set is effectively solved, automatic control over the sleep of the mobile terminal is realized through real-time detection and judgment of sleep conditions, and the use experience of a user is improved.
Drawings
FIG. 1 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a first embodiment of a method for automatically controlling terminal sleep according to the present application;
fig. 3 is a flowchart illustrating a second embodiment of a method for automatically controlling terminal sleep according to the present application;
fig. 4 is a flowchart illustrating a third embodiment of a method for automatically controlling terminal sleep according to the present application.
Detailed Description
In order to solve the problem that the mobile terminal lacks sleep control when a sleep mode is not set, the method and the device detect whether the terminal is in a no-operation state or not after connection is established with the terminal; when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data; if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state. The automatic control of the dormancy of the mobile terminal is realized through the real-time detection and judgment of the dormancy condition, and the use experience of a user is improved.
For a better understanding of the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, it is a schematic diagram of a hardware structure of an apparatus involved in various embodiments of the present application, where the apparatus may include: processor 101, memory 102, communication module 103, and the like. Those skilled in the art will appreciate that the hardware configuration of the apparatus shown in fig. 1 does not constitute a limitation of the apparatus, which may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The various components of the device are described in detail below with reference to fig. 1:
the processor 101 is a control center of the apparatus, connects various parts of the entire apparatus, and performs various functions of the apparatus or processes data by running or executing a program stored in the memory 102 and calling up the data stored in the memory 102, thereby monitoring the entire apparatus.
The memory 102 may be used to store various programs of the device as well as various data. The memory 102 mainly includes a program storage area and a data storage area, wherein the program storage area at least stores programs required for the automatic control terminal to sleep; the storage data area may store various data of the device. Further, the memory 102 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The communication module 103 may be used to implement communication with a terminal. The communication may be performed by wireless communication or wired communication.
In the embodiment of the present application, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102, and perform the following operations:
after establishing connection with a terminal, detecting whether the terminal is in a no-operation state;
when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data;
if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data;
and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
sending an instruction to the terminal to control the terminal to start the no-operation state timing;
and when detecting that the timing of the no-operation state reaches a preset value, sending an instruction to the terminal to control the terminal to enter a dormant state.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
and if the non-operation state timing is detected to be interrupted, sending an instruction to the terminal to control the terminal to reset the non-operation state timing.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
and if the terminal is judged not to generate the displacement meeting the preset condition, continuously detecting whether the terminal is in a no-operation state.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
and if the terminal is not placed, continuously detecting whether the terminal is in a no-operation state.
In one embodiment, the entering into the sleep state includes turning off a display screen and/or cleaning up running applications.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
and acquiring the application running by the terminal and recording the application.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal hibernation program stored in the memory 102 and perform the following operations:
and when detecting that the terminal exits the sleep state, sending an instruction to the terminal to control the terminal to start the recorded application.
According to the technical scheme, after the connection with the terminal is established, whether the terminal is in a non-operation state is detected; when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data; if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state. Therefore, the problem that the mobile terminal lacks of sleep control when the sleep mode is not set is effectively solved, automatic control over the sleep of the mobile terminal is realized through real-time detection and judgment of sleep conditions, and the use experience of a user is improved.
For better understanding of the above technical solutions, the following detailed descriptions will be provided in conjunction with the drawings and the detailed description of the embodiments.
Referring to fig. 2, in a first embodiment of the present application, a method for automatically controlling terminal sleep specifically includes the following steps:
step S110, after the connection with the terminal is established, whether the terminal is in a no-operation state is detected.
In this embodiment, the terminal is an intelligent terminal having an automatic sleep control requirement and capable of achieving a sleep condition, and mainly includes a mobile terminal such as a smart phone and a tablet computer; the device for automatically controlling the sleep of the terminal can be intelligent equipment such as an intelligent television, a computer and the like. Wherein, one device can simultaneously carry out automatic sleep control on a plurality of terminals.
After the device establishes connection with the terminal, automatic sleep control can be started for the terminal. The device can be connected with the terminal through a wireless network such as WIFI; the automatic sleep control is to control the terminal to enter a sleep state when the terminal is judged to be in a non-use state. If the terminal is to be judged to be in the non-use state, whether the terminal is in the non-operation state needs to be detected firstly. Since the terminal is obviously not in a non-use state if it is being operated by the user. The non-operation state is a state in which the user does not perform any operation on the terminal, and at least needs to include that the user does not perform any operation on a touch screen of the terminal, the user does not perform any operation on an entity key of the terminal, and the user does not perform any operation on the terminal in a voice control mode.
Step S120, when the terminal is detected to be in a no-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data.
In this embodiment, if it is detected that the terminal is in the no-operation state, it means that the user has stopped operating the terminal. But merely detecting that the terminal is in the no-operation state cannot completely determine that the terminal is in the non-use state because the user may only temporarily stop the operation of the terminal. For example, the user may simply be text displayed on a reading terminal. At this time, the user still uses the terminal although the operation on the terminal is stopped, and may soon continue to operate the terminal.
Therefore, when the terminal is detected to be in a non-operation state, the sensor data of the terminal is further acquired, and whether the terminal generates displacement meeting a preset condition is judged according to the sensor data, so that whether the terminal is in a non-use state is further judged. The sensor data is mainly sensor data of the terminal in the vertical direction, and a user often chooses to put the terminal down or put the terminal into a pocket after stopping using the terminal; and the preset condition may be set accordingly to be accelerated and moved a certain distance in a vertically downward direction. It is understood that the preset condition may also be set as other conditions capable of determining whether the terminal is dropped or retracted according to actual conditions.
Step S130, if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data.
In this embodiment, if it is determined that the terminal generates a displacement that satisfies a preset condition, it means that the user is putting down or putting up the terminal. However, there is still a possibility that the user suddenly gives up putting the terminal down or taking it up. For example, after putting down a terminal, the user suddenly remembers that something is left untreated, and quickly picks up the terminal again. At this time, if the terminal is controlled to enter the sleep state only by judging that the terminal generates the displacement meeting the preset condition, the use experience of the user is greatly influenced.
Therefore, after it is determined that the terminal generates the displacement meeting the preset condition, it is further required to acquire the camera data of the terminal and determine whether the terminal is placed according to the camera data, so as to finally determine whether the terminal is in the non-use state. The placed state is a state that a user does not watch a display screen of the terminal; the camera data may be image data within a certain time period captured by a front camera of the terminal. At this time, the acquired image capture data may have the following three cases: in the first case, the camera data includes human face features; in a second case, the average brightness value of the image pickup data is less than or equal to a preset value; in a third case, the average brightness value of the image data is greater than a preset value and does not contain human face features. For the first case, it is clear that the user is still using the terminal, which is not placed at this time; for the second case, the terminal is obviously stowed or set down face down, when it is placed; for the third case, it can be known that the terminal is not picked up again, and the terminal is also placed.
Step S140, if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state.
In this embodiment, if it is determined that the terminal is placed, it means that the terminal is not picked up for use after being put down or put up. At this time, the terminal has satisfied the three conditions of being in the no-operation state, generating the displacement satisfying the preset condition and being placed at the same time, so there is a very high probability that the terminal can be determined to be currently in the non-use state, and thus an instruction can be sent to the terminal to control the terminal to enter the sleep state. In an embodiment, the entering into the sleep state may include operations of turning off a display screen, cleaning up running applications, and the like, which can reduce power consumption of the terminal.
The method has the advantages that after the connection with the terminal is established, whether the terminal is in a non-operation state or not is detected; when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data; if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state. Therefore, the problem that the mobile terminal lacks of sleep control when the sleep mode is not set is effectively solved, automatic control over the sleep of the mobile terminal is realized through real-time detection and judgment of sleep conditions, and the use experience of a user is improved.
Referring to fig. 3, in a second embodiment of the present application, a method for automatically controlling terminal sleep specifically includes the following steps:
step S210, after establishing connection with the terminal, detecting whether the terminal is in a no-operation state.
Step S220, sending an instruction to the terminal to control the terminal to start the no-operation state timing.
In this embodiment, after the apparatus establishes a connection with a terminal, the apparatus may perform automatic sleep control on the terminal in a non-use state in some cases by detecting whether the terminal is in a non-operation state, determining whether the terminal generates a displacement satisfying a preset condition, and determining whether the terminal is placed. However, the automatic sleep control cannot be performed for a terminal that is not in use in other cases. For example, a user may have a terminal placed on a desktop to watch a video, and suddenly need to leave for a long time, but not turn the terminal off. At this time, although the terminal can satisfy the condition of the no-operation state, the terminal cannot satisfy the condition of generating the displacement satisfying the preset condition, and thus cannot perform the automatic sleep control on the terminal.
Therefore, when detecting whether the terminal is in a no-operation state in real time, judging whether the terminal generates displacement meeting preset conditions and judging whether the terminal is placed, the device can also control the terminal to start no-operation state timing by sending an instruction to the terminal, so that the no-operation state timing is utilized to further realize automatic sleep control of the terminal.
Step S230, if it is detected that the no-operation state timing is interrupted, sending an instruction to the terminal to control the terminal to reset the no-operation state timing.
In this embodiment, if it is detected that the no-operation state timer is interrupted, it means that the user operates the terminal again after stopping operating the terminal for a period of time, and it is obvious that the no-operation state timer needs to be reset at this time, so the apparatus may send an instruction to the terminal to control the terminal to reset the no-operation state timer.
Step S240, when detecting that the timing of the no-operation state reaches a preset value, sending an instruction to the terminal to control the terminal to enter a dormant state.
In this embodiment, the preset value is a value used for determining whether the duration of the terminal in the no-operation state meets the condition for performing the automatic sleep control, and may be a default value provided by the apparatus or a value set by the user according to actual needs. In addition, in order to ensure the accuracy of judging whether the terminal needs to be automatically dormant, the method can also select to acquire the camera shooting data of the terminal and judge whether the face features exist in the camera shooting data when detecting that the non-operation state reaches a preset value, and only control the terminal to enter the dormancy when the face features do not exist.
If the timing in the no-operation state reaches the preset value, the time length of the terminal in the no-operation state is judged to have reached the condition for performing automatic sleep control, and therefore an instruction can be sent to the terminal to control the terminal to enter the sleep state.
Step S250, when the terminal is detected to be in a no-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data.
In step S230, if it is determined that the terminal generates a displacement meeting a preset condition, acquiring camera data of the terminal and determining whether the terminal is placed according to the camera data.
Step S270, if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state.
The method has the advantage that the step of setting the non-operation sleep timing is added on the basis of the first embodiment. Therefore, the problem that the mobile terminal lacks sleep control when a sleep mode is not set is further effectively solved by setting the non-operation sleep timing, automatic control over sleep of the mobile terminal is realized through real-time detection and judgment of sleep conditions, and the use experience of a user is improved.
Referring to fig. 4, in a third embodiment of the present application, a method for automatically controlling terminal sleep specifically includes the following steps:
step S310, after the connection with the terminal is established, whether the terminal is in a no-operation state is detected.
Step S320, when the terminal is detected to be in a no-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data.
Step S330, if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data.
Step S331, if it is determined that the terminal does not generate a displacement satisfying a preset condition, continuously detecting whether the terminal is in a no-operation state.
In this embodiment, if it is determined that the terminal does not generate a displacement that satisfies a preset condition, it means that the terminal may not generate movement or the movement generated by the terminal fails to satisfy the preset condition, and it is not sufficient to determine that the terminal is retracted or dropped. Since the sleep condition is not satisfied, it cannot be determined that the terminal is in the non-use state, and therefore, the sleep condition needs to be determined again, that is, it needs to continuously detect whether the terminal is in the no-operation state, and then further determine other sleep conditions.
Step S341, if it is determined that the terminal is placed, acquiring an application that the terminal is running, recording the application, and sending an instruction to the terminal to control the terminal to enter a sleep state.
In this embodiment, if it is determined that the terminal is placed, it means that the terminal is not picked up for use after being put down or put up. At this time, the terminal has satisfied the three conditions of being in the no-operation state, generating the displacement satisfying the preset condition and being placed at the same time, so there is a very high probability that the terminal can be determined to be currently in the non-use state, and thus an instruction can be sent to the terminal to control the terminal to enter the sleep state. Before sending an instruction to the terminal to control the terminal to enter the sleep state, the terminal may first acquire an application running on the terminal and record information such as a name of the application in the device, so that the terminal can quickly recover the cleaned application through the device after exiting the sleep state.
Step S342, if it is determined that the terminal is not placed, continue to detect whether the terminal is in a no-operation state.
In this embodiment, if it is determined that the terminal is not placed, it means that the terminal may be taken up again after being placed down or retracted, and it is obviously impossible to determine that the terminal is in a non-use state. Therefore, the sleep condition needs to be determined again, that is, whether the terminal is in a no-operation state needs to be continuously detected, and then other sleep conditions need to be further determined.
Step S350, when it is detected that the terminal exits the sleep state, sending an instruction to the terminal to control the terminal to start the recorded application.
In this embodiment, since the apparatus has previously acquired the application being run by the terminal and recorded information such as the name of the application before sending the instruction to the terminal to control the terminal to enter the sleep state. Therefore, when the terminal is detected to exit from the sleep state, an instruction can be sent to the terminal to control the terminal to start the recorded application, so that the terminal can quickly recover the cleaned application when entering the sleep state.
The method has the beneficial effects that the steps executed when the dormancy condition is not met and the steps of backing up and recovering the running application are added on the basis of the first embodiment. Therefore, the problem that the mobile terminal lacks sleep control when the sleep mode is not set is further effectively solved, automatic control over the sleep of the mobile terminal is realized through real-time detection and judgment of sleep conditions, and the use experience of a user is improved.
Based on the same inventive concept, an embodiment of the present application further provides a device, where the device includes a processor, a memory, and an automatic control terminal hibernation program that is stored in the memory and can be run on the processor, and when the automatic control terminal hibernation program is executed by the processor, the automatic control terminal hibernation program implements the processes of the above-mentioned method embodiment for automatically controlling terminal hibernation, and can achieve the same technical effects, and is not described herein again to avoid repetition.
Since the apparatus provided in the embodiments of the present application is an apparatus used for implementing the method in the embodiments of the present application, based on the method described in the embodiments of the present application, a person skilled in the art can understand the specific structure and the variation of the apparatus, and thus details are not described herein again. All devices used in the methods of the embodiments of the present application are within the scope of the present application.
Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, where an automatic control terminal hibernation program is stored in the computer-readable storage medium, and when the automatic control terminal hibernation program is executed by a processor, the automatic control terminal hibernation program implements each process of the above-mentioned method embodiment for automatically controlling terminal hibernation, and can achieve the same technical effect, and is not described herein again to avoid repetition.
Since the computer-readable storage medium provided in the embodiments of the present application is a computer-readable storage medium used for implementing the method in the embodiments of the present application, based on the method described in the embodiments of the present application, those skilled in the art can understand the specific structure and modification of the computer-readable storage medium, and thus details are not described herein. Any computer-readable storage medium that can be used with the methods of the embodiments of the present application is intended to be within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for automatically controlling terminal dormancy, the method comprising:
after establishing connection with a terminal, detecting whether the terminal is in a no-operation state;
when the terminal is detected to be in a non-operation state, acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting preset conditions or not according to the sensor data;
if the terminal is judged to generate the displacement meeting the preset condition, acquiring the camera shooting data of the terminal and judging whether the terminal is placed according to the camera shooting data;
and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state.
2. The method of automatically controlling the sleep of a terminal as claimed in claim 1, wherein the step of detecting whether the terminal is in a no-operation state further comprises:
sending an instruction to the terminal to control the terminal to start the no-operation state timing;
and when detecting that the timing of the no-operation state reaches a preset value, sending an instruction to the terminal to control the terminal to enter a dormant state.
3. The method for automatically controlling terminal dormancy according to claim 2, wherein after the step of sending the instruction to the terminal to control the terminal to start the no-operation state timing, further comprising:
and if the non-operation state timing is detected to be interrupted, sending an instruction to the terminal to control the terminal to reset the non-operation state timing.
4. The method for automatically controlling terminal sleep according to claim 1, further comprising, after the step of determining whether the terminal generates a displacement satisfying a preset condition according to the sensor data:
and if the terminal is judged not to generate the displacement meeting the preset condition, continuously detecting whether the terminal is in a no-operation state.
5. The method for automatically controlling terminal hibernation according to claim 1, further comprising, after the step of determining whether the terminal is placed according to the camera data:
and if the terminal is not placed, continuously detecting whether the terminal is in a no-operation state.
6. Method for automatically controlling the hibernation of a terminal according to claim 1 or 2, wherein said entering into a hibernation state comprises turning off a display screen and/or cleaning up running applications.
7. The method for automatically controlling the terminal to sleep according to claim 6, wherein before the step of sending the instruction to the terminal to control the terminal to enter the sleep state, the method further comprises:
and acquiring the application running by the terminal and recording the application.
8. The method of automatically controlling terminal sleep according to claim 7, further comprising:
and when detecting that the terminal exits the sleep state, sending an instruction to the terminal to control the terminal to start the recorded application.
9. An apparatus comprising a processor, a memory, and an automatic control terminal hibernation program stored on the memory and executable on the processor, the automatic control terminal hibernation program, when executed by the processor, implementing the steps of the method of automatic control terminal hibernation according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an automatic control terminal hibernation program that, when executed by a processor, implements the steps of the method of automatically controlling terminal hibernation according to any one of claims 1 to 8.
CN202011185056.0A 2020-10-29 2020-10-29 Method and device for automatically controlling terminal dormancy and computer readable storage medium Pending CN112351482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185056.0A CN112351482A (en) 2020-10-29 2020-10-29 Method and device for automatically controlling terminal dormancy and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185056.0A CN112351482A (en) 2020-10-29 2020-10-29 Method and device for automatically controlling terminal dormancy and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112351482A true CN112351482A (en) 2021-02-09

Family

ID=74355397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185056.0A Pending CN112351482A (en) 2020-10-29 2020-10-29 Method and device for automatically controlling terminal dormancy and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112351482A (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365197A (en) * 2008-08-29 2009-02-11 青岛海信移动通信技术股份有限公司 Energy consumption control method for positioning terminal and positioning terminal applying the method
CN101465100A (en) * 2007-12-19 2009-06-24 诚实科技香港有限公司 Method for and device controlling screen backlight unit switch of portable electronic device
CN101931697A (en) * 2010-08-05 2010-12-29 华为终端有限公司 Hand-held mobile terminal standby method, microprocessor and mobile phone
CN104092822A (en) * 2014-07-01 2014-10-08 惠州Tcl移动通信有限公司 Mobile phone state switching method and system based on face detection and eyeball tracking
CN104679240A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal control method
CN104679217A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal
US20150253351A1 (en) * 2014-03-07 2015-09-10 Qualcomm Incorporated Detecting Imminent Use of a Device
CN104915007A (en) * 2015-06-17 2015-09-16 福州瑞芯微电子有限公司 Display screen device use state judgment method and circuit
CN105549721A (en) * 2015-12-18 2016-05-04 Tcl集团股份有限公司 Sleep method and apparatus for intelligent terminal
CN105657531A (en) * 2015-12-30 2016-06-08 深圳Tcl数字技术有限公司 Hibernation control method and system for mobile terminal
CN106020510A (en) * 2016-05-17 2016-10-12 广东欧珀移动通信有限公司 Control method and device of terminal
CN106462335A (en) * 2015-08-18 2017-02-22 华为技术有限公司 Dormancy awakening system, method and device for terminal
US20170143252A1 (en) * 2015-11-24 2017-05-25 Xiaomi Inc. Sleep state detection method, apparatus and system
CN106814838A (en) * 2015-11-30 2017-06-09 腾讯科技(深圳)有限公司 The method and apparatus of terminal auto sleep
CN107277907A (en) * 2017-07-31 2017-10-20 努比亚技术有限公司 Method for controlling mobile terminal, mobile terminal and computer-readable recording medium
CN107292156A (en) * 2017-06-29 2017-10-24 深圳天珑无线科技有限公司 A kind of data processing method and device
CN108388414A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 Go out screen control method and device, computer readable storage medium, the terminal of terminal
CN109068176A (en) * 2018-10-26 2018-12-21 四川长虹电器股份有限公司 TV suspend mode control system
WO2019109557A1 (en) * 2017-12-06 2019-06-13 华为技术有限公司 Method and device for reducing power consumption
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN111163504A (en) * 2019-12-19 2020-05-15 上海传英信息技术有限公司 Power-saving processing method, mobile terminal and computer storage medium
WO2020168486A1 (en) * 2019-02-20 2020-08-27 东莞市讯天宏智能科技有限公司 Method for smartly controlling terminal screen, and terminal

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465100A (en) * 2007-12-19 2009-06-24 诚实科技香港有限公司 Method for and device controlling screen backlight unit switch of portable electronic device
CN101365197A (en) * 2008-08-29 2009-02-11 青岛海信移动通信技术股份有限公司 Energy consumption control method for positioning terminal and positioning terminal applying the method
CN101931697A (en) * 2010-08-05 2010-12-29 华为终端有限公司 Hand-held mobile terminal standby method, microprocessor and mobile phone
US20150253351A1 (en) * 2014-03-07 2015-09-10 Qualcomm Incorporated Detecting Imminent Use of a Device
CN104092822A (en) * 2014-07-01 2014-10-08 惠州Tcl移动通信有限公司 Mobile phone state switching method and system based on face detection and eyeball tracking
CN104679217A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal
CN104679240A (en) * 2015-01-26 2015-06-03 深圳市金立通信设备有限公司 Terminal control method
CN104915007A (en) * 2015-06-17 2015-09-16 福州瑞芯微电子有限公司 Display screen device use state judgment method and circuit
CN106462335A (en) * 2015-08-18 2017-02-22 华为技术有限公司 Dormancy awakening system, method and device for terminal
US20170143252A1 (en) * 2015-11-24 2017-05-25 Xiaomi Inc. Sleep state detection method, apparatus and system
CN106814838A (en) * 2015-11-30 2017-06-09 腾讯科技(深圳)有限公司 The method and apparatus of terminal auto sleep
CN105549721A (en) * 2015-12-18 2016-05-04 Tcl集团股份有限公司 Sleep method and apparatus for intelligent terminal
CN105657531A (en) * 2015-12-30 2016-06-08 深圳Tcl数字技术有限公司 Hibernation control method and system for mobile terminal
CN106020510A (en) * 2016-05-17 2016-10-12 广东欧珀移动通信有限公司 Control method and device of terminal
CN107292156A (en) * 2017-06-29 2017-10-24 深圳天珑无线科技有限公司 A kind of data processing method and device
CN107277907A (en) * 2017-07-31 2017-10-20 努比亚技术有限公司 Method for controlling mobile terminal, mobile terminal and computer-readable recording medium
WO2019109557A1 (en) * 2017-12-06 2019-06-13 华为技术有限公司 Method and device for reducing power consumption
CN108388414A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 Go out screen control method and device, computer readable storage medium, the terminal of terminal
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN109068176A (en) * 2018-10-26 2018-12-21 四川长虹电器股份有限公司 TV suspend mode control system
WO2020168486A1 (en) * 2019-02-20 2020-08-27 东莞市讯天宏智能科技有限公司 Method for smartly controlling terminal screen, and terminal
CN111163504A (en) * 2019-12-19 2020-05-15 上海传英信息技术有限公司 Power-saving processing method, mobile terminal and computer storage medium

Similar Documents

Publication Publication Date Title
CN103135762B (en) Method and its mobile device for operating user function based on eye tracking
CN103702155B (en) A kind of TV control method and device
JP2017517708A (en) Air conditioner activation method, air conditioner activation apparatus, computer program, and computer-readable storage medium
CN105933539B (en) audio playing control method and device and terminal
CN109167877B (en) Terminal screen control method and device, terminal equipment and storage medium
CN106055458B (en) A kind of charging reminding method, device and mobile device
US9900499B2 (en) Time lapse user interface enhancements
CN109002387A (en) User reminding method, apparatus, terminal device and the storage medium of application program
CN108650418B (en) Fatigue reminding method and device, intelligent terminal and storage medium
CN104333654A (en) Danger warning method, danger warning device and portable electronic equipment
US8659563B2 (en) Electronic device with a page turning function during a sleep mode of the electronic device
CN110574355B (en) Alarm clock reminding method and device, storage medium and electronic equipment
CN105005489B (en) A kind of the starting method and terminal device of terminal device
CN114025093A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112291480B (en) Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN107343100B (en) Information prompting method and device, storage medium and electronic equipment
CN112566228A (en) Method and system for reducing equipment power consumption in network video conference
CN112351482A (en) Method and device for automatically controlling terminal dormancy and computer readable storage medium
CN107231474A (en) Information prompting method and device, computer installation and storage medium
CN111198641A (en) Message pushing method and terminal equipment
CN111290565A (en) Doze mode control method, device, terminal and storage medium
CN107861605B (en) Data processing method and device
WO2023082569A1 (en) Video information extraction method and apparatus
CN106603850A (en) Incoming call reminding method and device
CN112929484B (en) Notification message reminding method, notification message reminding device, electronic equipment and readable storage medium

Legal Events

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