CN112351482B - 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 PDFInfo
- Publication number
- CN112351482B CN112351482B CN202011185056.0A CN202011185056A CN112351482B CN 112351482 B CN112351482 B CN 112351482B CN 202011185056 A CN202011185056 A CN 202011185056A CN 112351482 B CN112351482 B CN 112351482B
- Authority
- CN
- China
- Prior art keywords
- terminal
- operation state
- sleep
- control
- data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000005059 dormancy Effects 0.000 title claims abstract description 38
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 230000007958 sleep Effects 0.000 claims abstract description 78
- 238000006073 displacement reaction Methods 0.000 claims abstract description 40
- 238000004140 cleaning Methods 0.000 claims description 4
- 238000011897 real-time detection Methods 0.000 abstract description 6
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000004622 sleep time Effects 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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 non-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 according to the sensor data; if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the 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 lacks sleep control when the sleep mode is not set, realizes the automatic control of the sleep of the mobile terminal through the real-time detection and judgment of the sleep condition, and improves the use experience of users.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for automatically controlling terminal dormancy, and a computer readable storage medium.
Background
With the continuous popularization of mobile terminals and the continuous enrichment of their functions, the roles of mobile terminals in people's lives have become increasingly important. However, due to the limitation of the battery power of the mobile terminal, people cannot use the mobile terminal for a long time. In order to extend the duration of a mobile terminal, a method of enabling the mobile terminal to enter a sleep state without being used is generally used to save battery power. Conventional techniques require the user to set the sleep time before the mobile terminal is put into 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 works after the user finishes using the mobile terminal, and a large amount of electric quantity is consumed.
Disclosure of Invention
The embodiment of the application solves the problem that the mobile terminal lacks sleep control when the sleep mode is not set by providing a method and a device for automatically controlling the sleep of the terminal and a computer readable storage medium.
The embodiment of the application provides a method for automatically controlling dormancy of a terminal, which comprises the following steps:
after establishing connection with a terminal, detecting whether the terminal is in a non-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 according to the sensor data;
if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the 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 non-operating state further comprises:
Sending an instruction to the terminal to control the terminal to start the timing of the non-operation state;
and when the timing of the non-operation state is detected to reach 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 an 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 satisfying the preset condition according to the sensor data, the method further includes:
If the terminal is judged not to generate displacement meeting the preset condition, whether the terminal is in a non-operation state is continuously detected.
In an embodiment, after the step of determining whether the terminal is placed according to the image capturing data, the method further includes:
If the terminal is judged not to be placed, continuing to detect whether the terminal is in a non-operation state.
In an embodiment, the entering the sleep state includes turning off a display screen and/or cleaning up running applications.
In an embodiment, before the step of sending an 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 the terminal is detected to exit from the dormant state, sending an instruction to the terminal to control the terminal to start the recorded application.
The embodiment of the application also provides a device which comprises a processor, a memory and an automatic control terminal dormancy program stored on the memory and capable of running on the processor, wherein the automatic control terminal dormancy program realizes the steps of the method for automatically controlling terminal dormancy when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores an automatic control terminal dormancy program, and the automatic control terminal dormancy program realizes the steps of the method for automatically controlling terminal dormancy when being executed by a processor.
The technical scheme of the method and the device for automatically controlling the dormancy of the terminal and the computer readable storage medium provided by the embodiment of the application at least has the following technical effects:
After connection with a terminal is established, detecting whether the terminal is in a non-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 according to the sensor data; if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the 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 sleep control when the sleep mode is not set is effectively solved, the automatic control of the sleep of the mobile terminal is realized through the real-time detection and judgment of the sleep condition, and the use experience of a user is improved.
Drawings
FIG. 1 is a schematic view of a device according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for automatically controlling terminal sleep according to a first embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for automatically controlling terminal sleep according to a second embodiment of the present application;
fig. 4 is a flowchart of a third embodiment of a method for automatically controlling terminal dormancy according to the present application.
Detailed Description
The application aims to solve the problem that the mobile terminal lacks sleep control when the mobile terminal is not provided with a sleep mode, and detects whether the terminal is in a non-operation state 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 according to the sensor data; if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter the technical scheme of the dormant state. Through real-time detection and judgment of the dormancy condition, the automatic control of dormancy of the mobile terminal is realized, and the use experience of a user is improved.
In order to better understand the above technical solution, 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 application to those skilled in the art.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an apparatus according to various embodiments of the present application, 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 is not limiting of the apparatus, and the apparatus may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The various components of the device are described in detail below in conjunction with fig. 1:
the processor 101 is a control center of the device, connects various parts of the entire device, and performs various functions of the device or processes data by running or executing programs stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the device.
The memory 102 may be used to store various programs of the device as well as various data. The memory 102 mainly comprises a program storage area and a data storage area, wherein the program storage area at least stores programs required by dormancy of the automatic control terminal; the storage data area may store various data of the device. In addition, 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 can be performed by wireless communication or by wired communication.
In an embodiment of the present application, the processor 101 may be configured to invoke an automatic control terminal sleep program stored in the memory 102, and perform the following operations:
after establishing connection with a terminal, detecting whether the terminal is in a non-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 according to the sensor data;
if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the 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 sleep program stored in the memory 102 and perform the following operations:
Sending an instruction to the terminal to control the terminal to start the timing of the non-operation state;
and when the timing of the non-operation state is detected to reach 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 sleep 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 sleep program stored in the memory 102 and perform the following operations:
If the terminal is judged not to generate displacement meeting the preset condition, whether the terminal is in a non-operation state is continuously detected.
In one embodiment, the processor 101 may be configured to invoke an automatic control terminal sleep program stored in the memory 102 and perform the following operations:
If the terminal is judged not to be placed, continuing to detect whether the terminal is in a non-operation state.
In an embodiment, the entering 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 sleep 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 sleep program stored in the memory 102 and perform the following operations:
And when the terminal is detected to exit from the dormant state, sending an instruction to the terminal to control the terminal to start the recorded application.
According to the technical scheme, after connection is established with a terminal, 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 according to the sensor data; if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the 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 sleep control when the sleep mode is not set is effectively solved, the automatic control of the sleep of the mobile terminal is realized through the real-time detection and judgment of the sleep condition, and the use experience of a user is improved.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Referring to fig. 2, in a first embodiment of the present application, the method for automatically controlling dormancy of a terminal according to the present application specifically includes the following steps:
step S110, after establishing connection with the terminal, detecting whether the terminal is in a non-operation state.
In this embodiment, the terminal is an intelligent terminal with an automatic sleep control requirement and capable of achieving a sleep condition, and mainly includes mobile terminals such as a smart phone and a tablet computer; the device for automatically controlling the dormancy 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 dormancy control on a plurality of terminals.
After the device establishes connection with the terminal, the device can start to carry out automatic dormancy control on the terminal. The device can establish connection with the terminal through wireless networks such as WIFI and the like; the automatic dormancy control is used for controlling the terminal to enter a dormancy state when the terminal is judged to be in a non-use state. If it is to be determined whether the terminal is in a non-use state, it is first necessary to detect whether the terminal is in a non-operation state. Because the terminal is obviously not in a non-use state if it is being operated by a user. The no-operation state is a state that the user does not perform any operation on the terminal, and at least needs to include that the user does not perform operation on a touch screen of the terminal, the user does not perform operation on an entity key of the terminal, and the user does not perform operation on the terminal in a voice control mode.
And step S120, 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 according to the sensor data.
In this embodiment, if the terminal is detected to be in the no-operation state, this means that the user stops the operation on the terminal. However, merely detecting that the terminal is in the non-operation state cannot completely determine that the terminal is in the non-use state, because the user may simply temporarily stop the operation of the terminal. For example, the user may simply be text displayed on the reading terminal. At this time, the user stops the operation of the terminal, but is still using the terminal, and may soon continue to operate the terminal.
Therefore, when the terminal is detected to be in the non-operation state, further acquiring sensor data of the terminal and judging whether the terminal generates displacement meeting the preset condition according to the sensor data, so as to further judge whether the terminal is in the non-use state. The sensor data are mainly sensor data of the terminal in the vertical direction, and after the user stops using the terminal, the user often chooses to put down the terminal or put the terminal into a pocket; the preset condition may be set accordingly to be accelerated and moved a certain distance in a vertically downward direction. It can be understood that the preset condition can be set to other conditions capable of judging whether the terminal is put down or retracted according to actual situations.
Step S130, if it is determined that the terminal generates displacement meeting the preset condition, acquiring the image capturing data of the terminal and determining whether the terminal is placed according to the image capturing data.
In this embodiment, if it is determined that the terminal generates a displacement that satisfies the preset condition, this means that the user is dropping or stowing the terminal. But at this point there is still the possibility that the user suddenly gives up dropping or stowing the terminal. For example, after the user puts down the terminal, he suddenly remembers something else is not being handled and quickly re-picks up the terminal. At this time, if the terminal is controlled to enter the sleep state only because it is determined that the terminal generates the displacement satisfying the preset condition, the use experience of the user is greatly affected.
Therefore, after the terminal is determined to generate displacement meeting the preset condition, further acquiring the image capturing data of the terminal and determining whether the terminal is placed according to the image capturing data are required to finally determine whether the terminal is in a non-use state. The placed state is a state that a user does not watch the display screen of the terminal; the image pickup data may be image data of the terminal captured by a front camera for a certain time. At this time, the acquired image capturing data may have the following three cases: in the first case, the image capturing data includes a face feature; in the second case, the average brightness value of the image capturing data is smaller than or equal to a preset value; in a third case, the average brightness value of the image capturing data is larger than a preset value and does not include a face feature. For the first case, it is apparent that the user is still using the terminal, which is not placed at this time; for the second case, the terminal is then obviously stowed or lowered face down, when the terminal is placed; for the third case, it is known that the terminal is not picked up again, at which time the terminal is also placed.
And step S140, if the terminal is judged to be placed, an instruction is sent to the terminal to control the terminal to enter a dormant state.
In this embodiment, if it is determined that the terminal is placed, this means that the terminal is not re-picked up for use after being put down or retracted. At this time, since the terminal has satisfied three conditions of being in the no-operation state, generating displacement satisfying the preset condition, and being placed at the same time, there is a great probability that the terminal is 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 the sleep state may include operations of closing a display screen, cleaning an application running, and the like, which can reduce power consumption of the terminal.
The method has the beneficial effects that after connection is established with the terminal, 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 according to the sensor data; if the terminal is judged to generate displacement meeting the preset condition, acquiring the shooting data of the terminal and judging whether the terminal is placed according to the shooting data; and if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter the technical scheme of the dormant state. Therefore, the problem that the mobile terminal lacks sleep control when the sleep mode is not set is effectively solved, the automatic control of the sleep of the mobile terminal is realized through the real-time detection and judgment of the sleep condition, and the use experience of a user is improved.
Referring to fig. 3, in a second embodiment of the present application, the method for automatically controlling terminal dormancy according to the present application specifically includes the following steps:
Step S210, after connection is established with a terminal, whether the terminal is in a non-operation state is detected.
Step S220, an instruction is sent to the terminal to control the terminal to start the timing of the non-operation state.
In this embodiment, after the device establishes a connection with a terminal, by detecting whether the terminal is in a non-operating state, determining whether the terminal generates a displacement satisfying a preset condition, and determining whether the terminal is placed, the device may perform automatic sleep control on a terminal in a non-use state under some conditions. However, in other cases, the terminal in the non-use state cannot perform the automatic sleep control. For example, a user places a terminal on a desktop to watch video, suddenly needs to leave for a longer time, but does not turn the terminal off. At this time, the terminal can satisfy the condition of being in the no-operation state, but cannot achieve the condition of generating the displacement satisfying the preset condition, and thus cannot perform the automatic sleep control.
Therefore, the device can control the terminal to start the non-operation state timing by sending an instruction to the terminal while detecting whether the terminal is in the non-operation state, judging whether the terminal generates displacement meeting the preset condition and judging whether the terminal is placed in real time, so that the automatic dormancy control of the terminal is further realized by utilizing the non-operation state timing.
Step S230, if it is detected that the no-operation state timing is interrupted, an instruction is sent to the terminal to control the terminal to reset the no-operation state timing.
In this embodiment, if the no-operation state timer is detected to be interrupted, this means that the user performs an operation on the terminal again after stopping the operation on the terminal for a period of time, at which time it is obviously required to reset the no-operation state timer, so the device may send an instruction to the terminal to control the terminal to reset the no-operation state timer.
And step S240, when the timing of the non-operation state is detected to reach a preset value, an instruction is sent to the terminal to control the terminal to enter a dormant state.
In this embodiment, the preset value is a value for determining whether the duration of the terminal in the non-operating state reaches the condition of performing automatic sleep control, which may be a default value given by the device or a value set by the user according to the actual needs. In addition, in order to ensure the accuracy of judging whether the terminal needs automatic dormancy, when the timing of the non-operation state is detected to reach a preset value, acquiring the image pickup data of the terminal, judging whether the image pickup data has the face feature or not, and controlling the terminal to enter dormancy only when the face feature is not available.
If the timing of the non-operation state reaches the preset value, the condition that the automatic dormancy control is performed is achieved for the duration of the non-operation state of the terminal, so that an instruction can be sent to the terminal to control the terminal to enter the dormancy state.
And step S250, 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 according to the sensor data.
Step S230, if it is determined that the terminal generates a displacement satisfying the preset condition, acquiring the image capturing data of the terminal and determining whether the terminal is placed according to the image capturing data.
Step S270, if the terminal is judged to be placed, an instruction is sent to the terminal to control the terminal to enter a dormant state.
The above method has the advantage that the step of setting the no-operation sleep timing is 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 by setting the non-operation sleep timing, the automatic control of the sleep of the mobile terminal is realized by detecting and judging the sleep condition in real time, and the use experience of a user is improved.
Referring to fig. 4, in a third embodiment of the present application, the method for automatically controlling terminal dormancy according to the present application specifically includes the following steps:
step S310, after establishing connection with the terminal, detecting whether the terminal is in a non-operation state.
And step S320, 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 according to the sensor data.
Step S330, if it is determined that the terminal generates a displacement satisfying the preset condition, acquiring the image capturing data of the terminal and determining whether the terminal is placed according to the image capturing data.
Step S331, if it is determined that the terminal does not generate a displacement satisfying the preset condition, continuously detecting whether the terminal is in a non-operation state.
In this embodiment, if it is determined that the terminal does not generate a displacement that satisfies the preset condition, this means that the terminal may not generate a movement or the movement generated by the terminal may not satisfy the preset condition, which is insufficient to determine that the terminal is retracted or put down. Since the sleep condition is not satisfied, it cannot be determined that the terminal is in a non-use state, it is necessary to re-determine the sleep condition, that is, to continuously detect whether the terminal is in a non-operation state, and then further determine other sleep conditions.
Step S341, if it is determined that the terminal is placed, acquiring an application running by the terminal, 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, this means that the terminal is not re-picked up for use after being put down or retracted. At this time, since the terminal has satisfied three conditions of being in the no-operation state, generating displacement satisfying the preset condition, and being placed at the same time, there is a great probability that the terminal is 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. But before sending an instruction to the terminal to control the terminal to enter a sleep state, the terminal can acquire the running application of the terminal and record information such as the 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.
And step S342, if the terminal is judged not to be placed, continuing to detect whether the terminal is in a non-operation state.
In this embodiment, if it is determined that the terminal is not placed, this means that the terminal may be picked up again after being put down or retracted, and it is obviously impossible to determine that the terminal is in a non-use state. Therefore, it is necessary to make a decision on the sleep condition again, that is, to continuously detect whether the terminal is in the no-operation state, and then make a decision on other sleep conditions.
And step S350, when the terminal is detected to exit from the sleep state, an instruction is sent to the terminal to control the terminal to start the recorded application.
In this embodiment, the device has previously acquired the application being run by the terminal and recorded the information such as the name of the application before sending an 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 application cleaned when entering into the sleep state.
The method has the advantages that the steps executed when the sleep condition is not met and the steps for backing up and restoring 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, the automatic control of the sleep of the mobile terminal is realized through the real-time detection and judgment of the sleep condition, and the use experience of a user is improved.
Based on the same inventive concept, the embodiment of the present application further provides an apparatus, where the apparatus includes a processor, a memory, and an automatic control terminal sleep program stored in the memory and capable of running on the processor, where the automatic control terminal sleep program, when executed by the processor, implements each process of the foregoing method embodiment of automatic control terminal sleep, and can achieve the same technical effect, so that repetition is avoided and no further description is given here.
Since the device provided by the embodiment of the present application is a device used for implementing the method of the embodiment of the present application, based on the method described by the embodiment of the present application, a person skilled in the art can understand the specific structure and the deformation of the device, and therefore, the description thereof is omitted herein. All devices used in the method of the embodiment of the application are within the scope of the application.
Based on the same inventive concept, the embodiment of the present application further provides a computer readable storage medium, where an automatic control terminal dormancy program is stored on the computer readable storage medium, and when the automatic control terminal dormancy program is executed by a processor, the automatic control terminal dormancy program implements each process of the method embodiment of automatic control terminal dormancy described above, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
Because the computer readable storage medium provided by the embodiment of the present application is a computer readable storage medium used for implementing the method of the embodiment of the present application, based on the method described by the embodiment of the present application, a person skilled in the art can understand the specific structure and the modification of the computer readable storage medium, and therefore, the detailed description thereof is omitted herein. All computer readable storage media used in the method of the embodiment of the application are within the scope of the application.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 use of the words first, second, third, etc. do not denote any order. 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. It is therefore intended that the following claims be interpreted as including the 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 modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (7)
1. A method for automatically controlling dormancy of a terminal, the method comprising:
after connection is established with a terminal, detecting whether the terminal is in a non-operation state, wherein the non-operation state at least comprises that a user does not operate a touch screen of the terminal, the user does not operate an entity key of the terminal and the user does not operate the terminal in a voice control mode;
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 a preset condition according to the sensor data, wherein the sensor data is the sensor data of the terminal in the vertical direction, and the preset condition is that the terminal is accelerated in the vertical downward direction and moves for a certain distance;
If the terminal is judged to generate 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, wherein the placed state is a state that a user does not watch a display screen of the terminal;
if the terminal is judged to be placed, sending an instruction to the terminal to control the terminal to enter a dormant state, wherein entering the dormant state comprises closing a display screen and/or cleaning an running application;
If it is determined that the terminal generates displacement meeting a preset condition, acquiring image capturing data of the terminal and determining whether the terminal is placed according to the image capturing data, including:
if the terminal is judged to generate displacement meeting the preset condition, acquiring the image pickup data of the terminal, and judging whether the average brightness value of the image pickup data is larger than a preset value or not;
when the average brightness value of the image pickup data is smaller than or equal to a preset value, judging that the terminal is placed;
When the average brightness value of the image pickup data is larger than a preset value, judging whether the image pickup data contains face features, and judging that the terminal is placed if the image pickup data does not contain the face features;
Wherein the step of detecting whether the terminal is in a non-operation state further comprises: sending an instruction to the terminal to control the terminal to start the timing of the non-operation state; 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; when the timing of the non-operation state is detected to reach a preset value, acquiring the image pickup data of the terminal, judging whether the image pickup data has the face feature or not, and only sending an instruction to the terminal when the face feature is not available to control the terminal to enter a dormant state.
2. The method for automatically controlling dormancy of a terminal according to claim 1, wherein after said step of judging whether said terminal generates a displacement satisfying a preset condition based on said sensor data, further comprising:
If the terminal is judged not to generate displacement meeting the preset condition, whether the terminal is in a non-operation state is continuously detected.
3. The method for automatically controlling dormancy of a terminal according to claim 1, wherein after said step of judging whether said terminal is placed based on said image pickup data, further comprising:
If the terminal is judged not to be placed, continuing to detect whether the terminal is in a non-operation state.
4. The method for automatically controlling dormancy of a terminal according to claim 1, further comprising, before said step of sending an instruction to the terminal to control the terminal to enter a dormant state:
And acquiring the application running by the terminal and recording the application.
5. The method for automatically controlling dormancy of a terminal according to claim 4, wherein said method further comprises:
And when the terminal is detected to exit from the dormant state, sending an instruction to the terminal to control the terminal to start the recorded application.
6. An apparatus comprising a processor, a memory, and an automatic control terminal sleep program stored on the memory and operable on the processor, the automatic control terminal sleep program when executed by the processor performing the steps of the method of automatically controlling terminal sleep as claimed in any one of claims 1 to 5.
7. A computer readable storage medium, wherein an automatic control terminal sleep program is stored on the computer readable storage medium, and the automatic control terminal sleep program, when executed by a processor, implements the steps of the method for automatically controlling terminal sleep according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011185056.0A CN112351482B (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 CN112351482B (en) | 2020-10-29 | 2020-10-29 | Method and device for automatically controlling terminal dormancy and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112351482A CN112351482A (en) | 2021-02-09 |
CN112351482B true CN112351482B (en) | 2024-06-04 |
Family
ID=74355397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011185056.0A Active CN112351482B (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) | CN112351482B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116236000A (en) * | 2021-12-08 | 2023-06-09 | 比亚迪精密制造有限公司 | Data storage control method of electronic cigarette, electronic cigarette and computer readable storage medium |
Citations (20)
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 |
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 |
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150253351A1 (en) * | 2014-03-07 | 2015-09-10 | Qualcomm Incorporated | Detecting Imminent Use of a Device |
CN105433904A (en) * | 2015-11-24 | 2016-03-30 | 小米科技有限责任公司 | Sleep state detection method, device and system |
-
2020
- 2020-10-29 CN CN202011185056.0A patent/CN112351482B/en active Active
Patent Citations (20)
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 |
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112351482A (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002387B (en) | User reminding method and device of application program, terminal equipment and storage medium | |
US10409684B2 (en) | Method, device and storage medium for cleaning memory | |
CN105933539B (en) | audio playing control method and device and terminal | |
CN106201686A (en) | Management method, device and the terminal of application | |
CN110574355B (en) | Alarm clock reminding method and device, storage medium and electronic equipment | |
CN103685763A (en) | Message processing method and terminal | |
CN104918309A (en) | Energy-saving method and device for mobile terminal | |
WO2017201666A1 (en) | Message reply reminding method for electronic social software, and device therefor | |
WO2016045525A1 (en) | Method and apparatus for processing state of terminal | |
CN105426485A (en) | Image combination method and device, intelligent terminal and server | |
CN112214112A (en) | Parameter adjusting method and device | |
KR101676216B1 (en) | Message sending method, device, program, and recording medium | |
CN104079836A (en) | Photographing method and device based on mobile terminal | |
CN103369139B (en) | Shooting and recording method as well as shooting and recording device used in mobile equipment | |
CN112351482B (en) | Method and device for automatically controlling terminal dormancy and computer readable storage medium | |
CN106095544A (en) | Central processing unit control method and device | |
CN105739686A (en) | Control method and device of mobile terminal | |
WO2016145854A1 (en) | Gps function power-off method, device and terminal | |
CN109951701A (en) | Monitor fault handling method and device | |
CN107343100B (en) | Information prompting method and device, storage medium and electronic equipment | |
CN107861605B (en) | Data processing method and device | |
CN111198641A (en) | Message pushing method and terminal equipment | |
CN106357504A (en) | User list cleaning method and device thereof | |
CN110716632A (en) | Battery electric quantity management method and intelligent terminal | |
CN108196893A (en) | Adjust the method, apparatus and terminal of terminal sleeping |
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 |