CN106843706B - Shutdown control method and device and terminal equipment - Google Patents

Shutdown control method and device and terminal equipment Download PDF

Info

Publication number
CN106843706B
CN106843706B CN201710051547.8A CN201710051547A CN106843706B CN 106843706 B CN106843706 B CN 106843706B CN 201710051547 A CN201710051547 A CN 201710051547A CN 106843706 B CN106843706 B CN 106843706B
Authority
CN
China
Prior art keywords
preset
terminal
threshold value
screen
smaller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710051547.8A
Other languages
Chinese (zh)
Other versions
CN106843706A (en
Inventor
宋建文
刘欢欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710051547.8A priority Critical patent/CN106843706B/en
Publication of CN106843706A publication Critical patent/CN106843706A/en
Application granted granted Critical
Publication of CN106843706B publication Critical patent/CN106843706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a shutdown control method, a shutdown control device and a terminal device, wherein the method comprises the following steps: when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value; and when the terminal is determined to meet the preset condition that each representation terminal is not used, determining that the terminal is not used, and executing shutdown operation. The shutdown control method, the shutdown control device and the terminal equipment can be used for achieving automatic shutdown of the terminal equipment.

Description

Shutdown control method and device and terminal equipment
Technical Field
The disclosure relates to the technical field of intelligent terminal equipment, in particular to a shutdown control method and device and terminal equipment.
Background
With the progress of science and technology, intelligent terminals such as mobile phones play more and more important roles in our daily life. However, the terminal such as a mobile phone also has a certain degree of radiation, and is limited by factors such as limited battery capacity and limited battery life, so that it becomes necessary to shut down the terminal when the terminal is not used by a user. However, with the acceleration of the rhythm of life, people often forget to turn off smart devices such as mobile phones for various reasons before sleeping at night, so that the electric quantity of the mobile phones is consumed, radiation is generated to human bodies, and the influence of push messages, harassing calls, junk short messages and the like often affects the sleeping quality seriously.
Disclosure of Invention
The disclosure provides a shutdown control method, a shutdown control device and terminal equipment, which are used for realizing automatic shutdown of the terminal equipment at night.
According to a first aspect of the embodiments of the present disclosure, there is provided a shutdown control method, including:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
and when the terminal is determined to meet the preset condition that each representation terminal is not used, determining that the terminal is not used, and executing shutdown operation.
The technical scheme can comprise the following beneficial effects: according to the technical scheme, the user can set the shutdown time according with the sleep habit of the user as required, when the shutdown time is reached, the terminal equipment firstly conducts preliminary judgment on the lighting condition of the screen and the running condition of the application program, when the situation that the screen is turned off at present is determined, and no application program runs, whether shutdown is conducted or not is further determined according to the light intensity of the current environment, and the problem that the user is powered off by mistake when the situation is directly judged according to the light intensity condition can be avoided. The method is beneficial to improving the experience of the user. In a first possible implementation manner of the first aspect, the characterizing at least one preset condition that the terminal is not used further includes:
and the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value.
The technical scheme can comprise the following beneficial effects: when the light intensity of the current environment is determined to be smaller than the first threshold value, whether the terminal device is in the moving state at present can be further determined by further judging the acceleration value and/or the gyroscope data within the preset time range, and therefore the situation that mistaken shutdown operation is executed due to the fact that the terminal device is placed in a pocket or a bag is avoided.
According to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is larger than a preset volume threshold, and the volume of the current environment is snore.
The technical scheme can comprise the following beneficial effects: whether the current user is in the sleep state or not can be preliminarily judged by judging the volume of the current environment, and when the volume of the current environment is larger, the sleep state of the user can be accurately judged by judging whether the sound in the environment is snore or not, so that the shutdown misjudgment caused by the snore is avoided.
According to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the preset condition that the terminal is characterized not to be used is judged according to the following sequence:
the method comprises the steps that a screen is in a screen-off state, no application program runs in the screen-off state, the light intensity is smaller than a preset light threshold value, the value of an accelerometer and/or a gyroscope of the terminal in a preset time range is smaller than a preset threshold value, the volume of the current environment is smaller than a preset volume threshold value, the volume of the current environment is larger than a preset volume threshold value, and the condition that the volume of the current environment is snore is judged.
According to the first aspect, the first, second, and third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, a method for determining whether the terminal satisfies a condition that the light intensity is smaller than a preset light threshold includes:
determining whether the terminal meets the condition that the light intensity is smaller than a preset light threshold value or not according to the detection value of the light sensor;
alternatively, the first and second electrodes may be,
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
The technical scheme can comprise the following beneficial effects: the light intensity condition of the current environment can be judged through the detection value of the light intensity sensor or the gray value of the image shot by the camera, and then when a user is in a state of turning off the light and sleeping, even if the user does not actively turn off the machine, the machine can automatically execute the shutdown operation through the judgment, so that the operation process of the user is omitted, and the use experience of the user is improved.
According to a second possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method for determining whether the terminal satisfies that the value of the accelerometer and/or the gyroscope in the preset time range is smaller than the preset threshold value includes:
and determining whether the terminal meets the condition that the average value of the accelerometer and/or the gyroscope in a preset time range is smaller than a preset threshold value.
The technical scheme can comprise the following beneficial effects: by comparing the average value of the accelerometer and/or the gyroscope in the preset time range with the preset threshold value, whether the terminal equipment is in a static state or not can be accurately judged, and the problem of shutdown misjudgment caused by inaccurate judgment on the motion state of the terminal equipment is avoided.
According to a second aspect of the embodiments of the present disclosure, there is provided a shutdown control apparatus including:
the terminal comprises a first determining module, a second determining module and a control module, wherein the first determining module is configured to determine whether the terminal meets at least one preset condition for representing that the terminal is not used when the shutdown time set by a user is reached, the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen-off state, no application program runs in the screen-off state, and the light intensity is smaller than a preset light threshold;
and the second determining module is used for determining that the terminal is not used and executing shutdown operation when determining that the terminal meets the preset condition that each representation terminal is not used.
The technical scheme can comprise the following beneficial effects: according to the technical scheme, the user can set the shutdown time according with the sleep habit of the user as required, when the shutdown time is reached, the terminal equipment firstly conducts preliminary judgment on the lighting condition of the screen and the running condition of the application program, when the situation that the screen is turned off at present is determined, and no application program runs, whether shutdown is conducted or not is further determined according to the light intensity of the current environment, and the problem that the user is powered off by mistake when the situation is directly judged according to the light intensity condition can be avoided. The method is beneficial to improving the experience of the user.
In a first possible implementation form of the second aspect,
the at least one preset condition that the characterization terminal is not used further comprises:
and the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value.
The technical scheme can comprise the following beneficial effects: when the light intensity of the current environment is determined to be smaller than the first threshold value, whether the terminal device is currently in a moving state or not can be further determined by further judging the acceleration value and/or the gyroscope data within the preset time range, and therefore the situation that mistaken shutdown operation is executed due to the fact that the terminal device is placed in a pocket or a bag is avoided.
According to a first possible implementation form of the second aspect, in a second possible implementation form of the second aspect,
the characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is larger than a preset volume threshold, and the volume of the current environment is snore.
The technical scheme can comprise the following beneficial effects: whether the current user is in the sleep state or not can be preliminarily judged by judging the volume of the current environment, and when the volume of the current environment is larger, the sleep state of the user can be accurately judged by judging whether the sound in the environment is snore or not, so that the shutdown misjudgment caused by the snore is avoided.
According to a second possible implementation manner of the second aspect, in a third possible implementation manner of the first aspect, the first determining module determines the preset condition that represents that the terminal is not used according to the following sequence:
the method comprises the steps that a screen is in a screen-off state, no application program runs in the screen-off state, the light intensity is smaller than a preset light threshold value, the value of an accelerometer and/or a gyroscope of the terminal in a preset time range is smaller than a preset threshold value, the volume of the current environment is smaller than a preset volume threshold value, the volume of the current environment is larger than a preset volume threshold value, and the condition that the volume of the current environment is snore is judged.
According to the second aspect, the first, second and third possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect,
the first determination module is configured to determine whether the terminal meets the condition that the light intensity is smaller than a preset light threshold value according to the detection value of the light sensor;
alternatively, the first and second electrodes may be,
the first determination module is configured to:
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
The technical scheme can comprise the following beneficial effects: the light intensity condition of the current environment can be judged through the detection value of the light intensity sensor or the gray value of the image shot by the camera, and then when a user is in a state of turning off the light and sleeping, even if the user does not actively turn off the machine, the machine can automatically execute the shutdown operation through the judgment, so that the operation process of the user is omitted, and the use experience of the user is improved.
In a fifth possible implementation manner of the second aspect, the first determining module is configured to determine whether the terminal meets that an average value of the accelerometer and/or the gyroscope within a preset time range is smaller than a preset threshold.
The technical scheme can comprise the following beneficial effects: by comparing the average value of the accelerometer and/or the gyroscope in the preset time range with the preset second threshold value, whether the terminal equipment is in a static state or not can be accurately judged, and the problem of shutdown misjudgment caused by inaccurate judgment on the motion state of the terminal equipment is avoided.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
and when the terminal is determined to meet the preset condition that each representation terminal is not used, determining that the terminal is not used, and executing shutdown operation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a first embodiment of a shutdown control method in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of performing step 102, according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a second embodiment of a shutdown control method in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a third embodiment of a shutdown control method in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating a first embodiment of a shutdown control apparatus in accordance with an illustrative embodiment;
FIG. 6 is a block diagram illustrating a terminal device according to an example embodiment;
fig. 7 is a block diagram illustrating another terminal device according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a first embodiment of a shutdown control method according to an exemplary embodiment, where the method may be performed by a shutdown control apparatus, and the shutdown control apparatus may be integrated in a terminal device such as a mobile phone, as illustrated in fig. 1, where the method includes the following steps:
in step 101, it is determined whether the shutdown time set by the user is reached, if not, step 101 is executed in a loop, otherwise, step 102 is executed.
The shutdown time related in the embodiment of the present disclosure may be shutdown time that is set by a user according to a sleep habit of the user and meets a preference of the user, for example, if some users are used to go to bed at 11 pm, the user may set the shutdown time to 11 pm or any time after 11 pm.
Taking a mobile phone terminal as an example, in practical application, the power-off time can be set through an alarm setting interface of the mobile phone terminal. After the user completes the setting of the shutdown time, the baseband processor of the mobile phone terminal starts monitoring the shutdown time, and when the current time is monitored to reach the preset shutdown time, the step 102 is triggered and executed.
In step 102, it is determined whether the terminal meets at least one preset condition characterizing that the terminal is not used, where the at least one preset condition characterizing that the terminal is not used includes that the screen is in a screen-off state, no application program runs in the screen-off state, and the light intensity is less than a preset light threshold, if so, step 103 is executed, otherwise, step 102 is executed in a loop.
Fig. 2 is a flowchart illustrating a method for performing step 102 according to an exemplary embodiment, and as shown in fig. 2, step 102 may include the following sub-steps:
step 1021, determining whether the screen is in a screen-off state, and whether no application program is running, if yes, executing step 1022, otherwise, executing step 1021 in a circulating manner.
In practical applications, the terminal device may determine whether the screen is turned off by judging the on state of the backlight of the screen, for example, when all the backlights of the screen are in the off state, it may determine that the screen is currently in the off state. Otherwise, the screen is in a lighting state.
In the judgment of the application program, the purpose of determining whether the application program is running in the terminal device can be achieved by monitoring the active state of the application program in the terminal device. At this time, the shutdown operation should not be executed, and if the screen is off and no application is used, it indicates that the user is not using the mobile phone, and the shutdown determination may be further performed according to the light intensity of the environment.
In step 1022, it is determined whether the light intensity of the current environment is smaller than the preset light threshold, if yes, step 103 is executed, otherwise, step 1022 is executed in a loop.
In an implementation manner of the embodiment of the present disclosure, it may be determined whether the current light intensity is smaller than a preset light threshold by comparing a detection value of a light intensity sensor disposed on the terminal device with the preset light threshold.
In view of the fact that different users prefer to sleep at different light intensities, in the embodiment of the present disclosure, the preset light threshold may also be set according to the preference of the users. For example, the user can collect the brightness value of the user in the habitual sleeping environment through the light intensity sensor and use the brightness value as the light threshold for judging whether the user is powered off.
In another implementation manner of the embodiment of the present disclosure, it may be further determined whether the light intensity of the current environment is less than a preset light threshold by comparing the gray value of the image captured by the camera with the preset gray threshold. For example, when the gray value of the image captured by the camera is greater than the preset gray threshold, it may be determined that the light intensity of the current environment is less than the preset light threshold. The preset gray threshold value is the gray value of an image shot by the camera when the light intensity reaches the preset light threshold value.
Taking a mobile phone terminal as an example, a current mobile phone terminal generally includes a front camera and a rear camera, and because the front camera or the rear camera can be shielded when a user places a mobile phone, in practical application, images can be obtained through the front camera and the rear camera respectively, and a lower gray value of the two is compared with a preset gray threshold. Thereby determining that the camera is capturing an image of the surrounding environment.
Of course, in practical applications, the two implementation manners may also be respectively adopted to determine the light intensity of the current environment, and only when the brightness value of the light intensity sensor is smaller than the preset light threshold and the gray value of the image captured by the camera is greater than the preset gray threshold, it is determined that the light intensity of the current environment is smaller than the preset light threshold.
In step 103, a shutdown operation is performed.
In this embodiment, the user can set the shutdown time that accords with the sleep habit of oneself as required, and when reaching the shutdown time, terminal equipment is at first to the lighting condition of screen to and the operational aspect of application carries out preliminary judgement, is in the screen and extinguishes when confirming, and does not have any application operation, and whether further confirms to shut down according to the light intensity of current environment again, can avoid directly judging according to the light intensity condition, the problem that the user is using terminal equipment and is shut down by the mistake. The method is beneficial to improving the experience of the user.
Fig. 3 is a flowchart illustrating a second embodiment of a shutdown control method according to an exemplary embodiment, and as shown in fig. 3, the method may include the following steps:
in step 201, it is determined whether the shutdown time set by the user is reached, if yes, step 201 is executed in a loop, otherwise, step 202 is executed.
Step 202, determining whether the screen is in a screen-off state and whether any application program is not running, if so, executing step 203, otherwise, executing step 202 in a circulating manner.
In step 203, it is determined whether the light intensity of the current environment is less than a preset light threshold, if so, step 204 is executed, otherwise, step 203 is executed in a loop manner
In step 204, it is determined whether the value of the accelerometer and/or the gyroscope within the preset time range is smaller than a preset threshold, if so, step 205 is executed, otherwise, step 204 is executed in a loop.
In an implementation manner of the embodiment of the present disclosure, instantaneous accelerations of an accelerometer terminal device on the terminal device within a preset time range may be measured, and when all the measured instantaneous accelerations do not exceed a preset threshold, it is determined that the terminal device is in a stationary state, and at this time, a shutdown operation may be further performed. Of course, the present invention is only illustrated by way of example and is not limited to the only limitation of the present invention, for example, in a real-time application, the average acceleration of the terminal device in a preset time range may also be compared with a preset threshold, and when the average acceleration is smaller than the preset threshold, it may be determined that the terminal device is in a stationary state.
In another implementation manner of the embodiment of the present disclosure, a plurality of instantaneous values of a gyroscope on a terminal device within a preset time range may be respectively compared with a preset threshold, and if all the instantaneous values are smaller than the preset threshold, it is determined that the terminal device is in a stationary state. Similarly, in practical application, the average value of the gyroscope in the preset time range may be compared with a preset threshold, and when the average value is smaller than the preset threshold, it is determined that the terminal device is in a stationary state.
Of course, in practical applications, it may also be determined whether the terminal device is in a stationary state by combining the above manners, for example, when both the acceleration value of the terminal device within the preset time range and the value of the gyroscope are smaller than the preset threshold, it is determined that the terminal device is in a stationary state.
In step 205, a shutdown operation is performed.
In this embodiment, when it is determined that the light intensity of the current environment is smaller than the preset light threshold, by further determining the acceleration value and/or the gyroscope data within the preset time range, it can be further determined whether the terminal device is currently in a moving state, so that the situation that the operation of an unrelated machine is mistakenly executed because the terminal device is placed in a pocket or a bag is avoided.
Fig. 4 is a flowchart illustrating a third embodiment of a shutdown control method according to an exemplary embodiment, and as shown in fig. 4, the method may include the following steps:
in step 301, it is determined whether the shutdown time set by the user is reached, if yes, step 302 is executed, otherwise, step 301 is executed in a loop. In step 302, it is determined whether the screen is in a screen-off state and whether no application is running, if yes, step 303 is executed, otherwise step 302 is executed in a loop.
In step 303, it is determined whether the light intensity of the current environment is smaller than a preset light threshold, if so, step 304 is executed, otherwise, step 303 is executed in a loop.
In step 304, it is determined whether the value of the accelerometer and/or the gyroscope within the preset time range is smaller than a preset threshold, if so, step 305 is executed, otherwise, step 304 is executed in a loop.
The execution manner and advantageous effects of steps 301 to 304 in the embodiment of the present disclosure are similar to those of steps 201 to 204, and are not described herein again.
In step 305, it is determined that the volume of the current environment is less than the preset volume threshold, if yes, step 307 is executed, otherwise, step 306 is executed.
In practical application, sound of the surrounding environment is collected through a recording function of the terminal device, whether the decibel number of the current environment sound is smaller than a preset volume threshold value or not is determined, if yes, the current environment is in a quieter sleep environment, and at the moment, the shutdown operation can be directly executed. When the decibel number of the current environment exceeds or equals to the preset volume threshold, it may also be caused by snoring of the user, and further determination is needed.
In step 306, it is determined whether the sound of the current environment is a snoring sound, if so, step 307 is performed, otherwise, step 305 is performed.
Optionally, consistency analysis is performed between the sound spectrum of the current environment and a preset snore spectrum model, and when the similarity between the sound spectrum of the current environment and the preset snore spectrum model exceeds a preset threshold, it is determined that the current user is in a snore state, at this time, a shutdown operation may be performed, otherwise, the step of step 305 needs to be performed again.
In step 307, a shutdown operation is performed.
In the embodiment, whether the current user is in the sleep state can be preliminarily judged by judging the volume of the current environment, and when the volume of the current environment is larger, the sleep state of the user can be accurately judged by judging whether the sound in the environment is snore, so that the problem that shutdown misjudgment is caused by the snore is avoided.
Fig. 5 is a block diagram illustrating a first embodiment of a shutdown control apparatus according to an exemplary embodiment, as shown in fig. 5, the apparatus includes:
the first determining module 11 is configured to determine whether the terminal meets at least one preset condition that represents that the terminal is not used when the shutdown time set by the user is reached, where the at least one preset condition that represents that the terminal is not used includes that the screen is in a screen-off state, no application program runs in the screen-off state, and the light intensity is less than a preset light threshold;
and the second determining module 12 is configured to determine that the terminal is not used when determining that the terminal meets each preset condition that indicates that the terminal is not used, and execute a shutdown operation. (ii) a
Optionally, the first determining module 11 is configured to determine whether the terminal meets a condition that the light intensity is smaller than a preset light threshold according to a detection value of a light sensor; alternatively, the first and second electrodes may be,
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
The device provided by this embodiment can execute the technical solutions shown in fig. 1 or fig. 2, and the execution manner and the beneficial effects thereof are similar and will not be described herein again.
In a shutdown control apparatus provided in another embodiment of the present disclosure, on the basis of the embodiment of fig. 5, the characterizing at least one preset condition that the terminal is not used further includes:
and the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value.
Optionally, the first determining module 11 is further configured to determine whether the terminal satisfies that an average value of the accelerometer and/or the gyroscope in a preset time range is smaller than a preset threshold.
The apparatus provided in this embodiment can execute the technical solution shown in fig. 3, and the execution manner and the beneficial effects thereof are similar and will not be described again here.
In a further embodiment of the present disclosure, on the basis of the foregoing embodiment, the step of characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is larger than a preset volume threshold, and the volume of the current environment is snore.
Optionally, the first determining module 11 determines a preset condition that represents that the terminal is not used according to the following sequence:
the method comprises the steps that a screen is in a screen-off state, no application program runs in the screen-off state, the light intensity is smaller than a preset light threshold value, the value of an accelerometer and/or a gyroscope of the terminal in a preset time range is smaller than a preset threshold value, the volume of the current environment is smaller than a preset volume threshold value, the volume of the current environment is larger than a preset volume threshold value, and the condition that the volume of the current environment is snore is judged.
The apparatus provided in this embodiment can execute the technical solution shown in fig. 4, and the execution manner and the beneficial effects thereof are similar and will not be described again here.
With regard to the shutdown control device in the above embodiment, the specific manner in which each module and sub-module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
Having described the internal functions and structure of the shutdown control apparatus as described above, as shown in fig. 6, in practice, the shutdown control apparatus may be implemented as a terminal device including:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
and when the terminal is determined to meet the preset condition that each representation terminal is not used, determining that the terminal is not used, and executing shutdown operation.
In this embodiment, the user can set the shutdown time that accords with the sleep habit of oneself as required, and when reaching the shutdown time, terminal equipment is at first to the lighting condition of screen to and the operational aspect of application carries out preliminary judgement, is in the screen and extinguishes when confirming, and does not have any application operation, and whether further confirms to shut down according to the light intensity of current environment again, can avoid directly judging according to the light intensity condition, the problem that the user is using terminal equipment and is shut down by the mistake. The method is beneficial to improving the experience of the user.
Fig. 7 is a block diagram illustrating another terminal device according to an example embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, terminal device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on terminal device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 800.
The multimedia component 808 comprises a screen providing an output interface between the terminal device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 814 includes one or more sensors for providing various aspects of state assessment for terminal device 800. For example, sensor assembly 814 can detect the open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal device 800, sensor assembly 814 can also detect a change in the position of terminal device 800 or a component of terminal device 800, the presence or absence of user contact with terminal device 800, orientation or acceleration/deceleration of terminal device 800, and a change in the temperature of terminal device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal device 800 and other devices in a wired or wireless manner. The terminal device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a power-off control method, the method comprising:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
and when the terminal is determined to meet the preset condition that each representation terminal is not used, determining that the terminal is not used, and executing shutdown operation.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A terminal shutdown control method is characterized by comprising the following steps:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
when the screen is in a screen closing state, no application program runs in the screen closing state, and the light intensity is smaller than a preset light threshold value, determining that the terminal is not used, and executing shutdown operation;
the at least one preset condition that the characterization terminal is not used further comprises:
the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value;
the characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is greater than a preset volume threshold, and the volume of the current environment is snore;
the method for determining whether the terminal meets the condition that the light intensity is smaller than the preset light threshold value comprises the following steps:
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
2. The method according to claim 1, wherein the preset condition characterizing that the terminal is not used is judged according to the following sequence:
the method comprises the steps that a screen is in a screen-off state, no application program runs in the screen-off state, the light intensity is smaller than a preset light threshold value, the value of an accelerometer and/or a gyroscope of the terminal in a preset time range is smaller than a preset threshold value, the volume of the current environment is smaller than a preset volume threshold value, the volume of the current environment is larger than a preset volume threshold value, and the condition that the volume of the current environment is snore is judged.
3. The method according to any one of claims 1 to 2, wherein the method for determining whether the terminal satisfies the condition that the light intensity is less than the preset light threshold value comprises:
and determining whether the terminal meets the condition that the light intensity is smaller than a preset light threshold value or not according to the detection value of the light sensor.
4. The method according to claim 1, wherein the method for determining whether the terminal satisfies that the value of the accelerometer and/or the gyroscope in the preset time range is less than the preset threshold value comprises:
and determining whether the terminal meets the condition that the average value of the accelerometer and/or the gyroscope in a preset time range is smaller than a preset threshold value.
5. A shutdown control apparatus, characterized in that the apparatus comprises:
the terminal comprises a first determining module, a second determining module and a control module, wherein the first determining module is configured to determine whether the terminal meets at least one preset condition for representing that the terminal is not used when the shutdown time set by a user is reached, the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen-off state, no application program runs in the screen-off state, and the light intensity is smaller than a preset light threshold;
the second determining module is configured to determine that the terminal is not used when the screen is in a screen-off state and no application program runs in the screen-off state and the light intensity is smaller than a preset light threshold value, and execute a shutdown operation;
the at least one preset condition that the characterization terminal is not used further comprises:
the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value;
the characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is greater than a preset volume threshold, and the volume of the current environment is snore;
the first determination module is configured to:
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
6. The apparatus of claim 5, wherein the first determining module determines the preset condition that the terminal is not used according to the following sequence:
the method comprises the steps that a screen is in a screen-off state, no application program runs in the screen-off state, the light intensity is smaller than a preset light threshold value, the value of an accelerometer and/or a gyroscope of the terminal in a preset time range is smaller than a preset threshold value, the volume of the current environment is smaller than a preset volume threshold value, the volume of the current environment is larger than a preset volume threshold value, and the condition that the volume of the current environment is snore is judged.
7. The apparatus according to claim 5 or 6, wherein the first determining module is configured to determine whether the terminal satisfies a condition that the light intensity is less than a preset light threshold value according to the detection value of the light sensor.
8. The apparatus of claim 5, wherein the first determining module is configured to determine whether the terminal satisfies that an average of an accelerometer and/or a gyroscope over a preset time range is less than a preset threshold.
9. A terminal device, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
when the shutdown time set by a user is determined, determining whether the terminal meets at least one preset condition for representing that the terminal is not used, wherein the at least one preset condition for representing that the terminal is not used comprises that a screen is in a screen shutdown state, no application program runs in the screen shutdown state, and the light intensity is smaller than a preset light threshold value;
when the screen is in a screen closing state, no application program runs in the screen closing state, and the light intensity is smaller than a preset light threshold value, determining that the terminal is not used, and executing shutdown operation;
the at least one preset condition that the characterization terminal is not used further comprises:
the value of the accelerometer and/or the gyroscope of the terminal in a preset time range is smaller than a preset threshold value;
the characterizing at least one preset condition that the terminal is not used further includes:
the volume of the current environment is smaller than a preset volume threshold; alternatively, the first and second electrodes may be,
the volume of the current environment is greater than a preset volume threshold, and the volume of the current environment is snore;
the method for determining whether the terminal meets the condition that the light intensity is smaller than the preset light threshold value comprises the following steps:
determining whether the gray value of the image shot by the camera is greater than a preset gray threshold value, wherein the gray threshold value is the gray value of the image shot by the camera when the light intensity corresponds to the preset light threshold value;
and if the gray value of the image shot by the camera is larger than the gray threshold value, determining that the terminal meets the condition that the light intensity is smaller than a preset light threshold value.
CN201710051547.8A 2017-01-19 2017-01-19 Shutdown control method and device and terminal equipment Active CN106843706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710051547.8A CN106843706B (en) 2017-01-19 2017-01-19 Shutdown control method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710051547.8A CN106843706B (en) 2017-01-19 2017-01-19 Shutdown control method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN106843706A CN106843706A (en) 2017-06-13
CN106843706B true CN106843706B (en) 2020-02-07

Family

ID=59120826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710051547.8A Active CN106843706B (en) 2017-01-19 2017-01-19 Shutdown control method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN106843706B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315522A (en) * 2017-06-16 2017-11-03 广东欧珀移动通信有限公司 A kind of method of video playback, terminal and storage medium
CN107241506A (en) * 2017-06-19 2017-10-10 珠海格力电器股份有限公司 The method and device of a kind of alarm clock jingle bell of control intelligent terminal
CN107360620A (en) * 2017-08-07 2017-11-17 北京小米移动软件有限公司 Signaling method, device and storage medium
CN108093339A (en) * 2017-12-25 2018-05-29 广州市尊浪电器有限公司 Control the method and device of sound equipment
CN108469892A (en) * 2018-03-01 2018-08-31 珠海市魅族科技有限公司 Mobile terminal, control method and storage medium
CN109510900A (en) * 2019-01-29 2019-03-22 上海与德通讯技术有限公司 A kind of control method, device, equipment and storage medium
CN110491419B (en) * 2019-08-26 2021-08-13 广东小天才科技有限公司 Playing control method, system and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523318A (en) * 2011-12-15 2012-06-27 海信集团有限公司 Realizing method for screen-in-screen of mobile phone
CN103595865A (en) * 2013-11-08 2014-02-19 小米科技有限责任公司 Method and device for turning on or turning off terminal and terminal
CN105049734A (en) * 2015-08-31 2015-11-11 广州市幸福网络技术有限公司 License camera capable of giving shooting environment shooting prompt and shooting environment detection method
CN105867591A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Terminal control method and device
CN106101434A (en) * 2016-07-15 2016-11-09 宇龙计算机通信科技(深圳)有限公司 Screen brightness regulation method, device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101526351B1 (en) * 2012-07-20 2015-06-05 엘지전자 주식회사 Mobile terminal and control method for mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523318A (en) * 2011-12-15 2012-06-27 海信集团有限公司 Realizing method for screen-in-screen of mobile phone
CN103595865A (en) * 2013-11-08 2014-02-19 小米科技有限责任公司 Method and device for turning on or turning off terminal and terminal
CN105049734A (en) * 2015-08-31 2015-11-11 广州市幸福网络技术有限公司 License camera capable of giving shooting environment shooting prompt and shooting environment detection method
CN105867591A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Terminal control method and device
CN106101434A (en) * 2016-07-15 2016-11-09 宇龙计算机通信科技(深圳)有限公司 Screen brightness regulation method, device and terminal

Also Published As

Publication number Publication date
CN106843706A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106843706B (en) Shutdown control method and device and terminal equipment
CN107582028B (en) Sleep monitoring method and device
US10409684B2 (en) Method, device and storage medium for cleaning memory
EP3093569A1 (en) Method and device for turning on air conditioner
EP3133874A1 (en) Method and apparatus for starting energy saving mode
CN107919124B (en) Equipment awakening method and device
CN108108683B (en) Touch response method, mobile terminal and storage medium
CN106357934B (en) Screen locking control method and device
CN105162945A (en) Method and device for displaying information
CN112037787A (en) Wake-up control method, device and computer readable storage medium
CN106681618B (en) Method and device for awakening fingerprint identification module and mobile terminal
CN108200279B (en) Backlight adjusting method, device and equipment
CN109862169B (en) Electronic equipment control method, device and storage medium
CN110602324B (en) Reminding method and device of wearable equipment
CN108600503B (en) Voice call control method and device
CN107734303B (en) Video identification method and device
CN106877451B (en) Charging port short-circuit protection method and device
CN112817554A (en) Alert sound control method, alert sound control device, and storage medium
CN107844691B (en) Method and device for awakening terminal screen
CN105786561B (en) Method and device for calling process
CN107677363B (en) Noise prompting method and intelligent terminal
CN107861605B (en) Data processing method and device
CN111240456A (en) Power saving setting method, power saving setting device and computer storage medium
CN109922203B (en) Terminal, screen off method and device
CN109905543B (en) Method and device for preventing misoperation of terminal

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