CN106843706A - shutdown control method, device and terminal device - Google Patents

shutdown control method, device and terminal device Download PDF

Info

Publication number
CN106843706A
CN106843706A CN201710051547.8A CN201710051547A CN106843706A CN 106843706 A CN106843706 A CN 106843706A CN 201710051547 A CN201710051547 A CN 201710051547A CN 106843706 A CN106843706 A CN 106843706A
Authority
CN
China
Prior art keywords
terminal
default
less
volume
threshold value
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.)
Granted
Application number
CN201710051547.8A
Other languages
Chinese (zh)
Other versions
CN106843706B (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

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 is directed to a kind of shutdown control method, device and terminal device, the method includes:It is determined that when reaching the unused time of user's setting, determine whether terminal meets characterize that terminal is not used by least one pre-conditioned, at least one for characterizing that terminal is not used by be pre-conditioned to be in screen state of closing including screen, close screen state under there is no any application program to be less than default light threshold value in operation, light intensity;Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, perform power-off operation.Shutdown control method, device and terminal device that the disclosure is provided, can be used to realize the automatic shutdown of terminal device.

Description

Shutdown control method, device and terminal device
Technical field
This disclosure relates to intelligent terminal technical field, more particularly to a kind of shutdown control method, device and terminal set It is standby.
Background technology
With the development of science and technology the intelligent terminal such as mobile phone plays more and more important angle in our daily life Color.But, the terminal such as mobile phone there is also a certain degree of radiation, while it is limited to be limited by battery electric quantity, limited battery life Etc. factor so that user will not use to when, realize the shutdown of terminal, become necessary.But as life is saved The quickening played, people are frequent because a variety of causes forgets the smart machines such as closing hand phone before sleeping at night, so as to cause hand The consumption of electromechanics amount, and radiation is produced to human body, and often have the influence of PUSH message, harassing call, refuse messages etc., sternly Ghost image rings sleep quality.
The content of the invention
The disclosure provides a kind of shutdown control method, device and terminal device, is used to realize that the night of terminal device is automatic Shutdown.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of shutdown control method, including:
It is determined that when reaching the unused time of user's setting, determining whether terminal meets and characterizing terminal is not used by least one It is individual pre-conditioned, close screen state, Guan Pingzhuan for characterizing at least one pre-conditioned being in including screen that terminal is not used by There is no any application program to be less than default light threshold value in operation, light intensity under state;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, Perform power-off operation.
The technical scheme can include the following benefits:User can as needed set and meet certainly in the technical scheme The unused time of own sleep habit, when the unused time is reached, terminal device is first to the situation of lighting of screen, and applies journey The ruuning situation of sequence is tentatively judged, when extinguishing when it is determined that being currently at screen, and not having any application program to run, then is entered One step determines whether shutdown according to the light intensity of current environment, can avoid directly being judged according to light intensity condition When, user is currently in use terminal device and by the problem of error cut-off machine.Be conducive to improving the experience of user.The first of first aspect In kind possible implementation, it is described characterize that terminal is not used by least one pre-conditioned also include:
Numerical value of the accelerometer and/or gyroscope of the terminal in preset time range is less than predetermined threshold value.
The technical scheme can include the following benefits:When it is determined that the light intensity of current environment is less than first threshold When, by further judging the acceleration magnitude and/or gyro data in preset time range, can further determine that Whether terminal device is currently in mobile state, so as to avoid because terminal device be placed in pocket or bag in and perform mistake The situation of power-off operation.
According to the first possible implementation of first aspect, in second possible implementation of first aspect In, it is described characterize that terminal is not used by it is at least one pre-conditioned, also include:
The volume of current environment is less than default volume threshold;Or,
The volume of current environment is more than default volume threshold, and the volume of current environment is snore.
The technical scheme can include the following benefits:Judged by the volume to current environment, can be preliminary Whether active user is judged in sleep state, and when the volume of current environment is larger, by judging that the sound in environment is No is that snore can be accurately judged the sleep state of user, it is to avoid because snore causes shutdown to be judged by accident.
Second possible implementation according to first aspect, in the third possible implementation of first aspect In, pre-conditioned judge to characterize that the terminal is not used by according to following tandem:
Screen does not have any application program to be less than default light in operation, light intensity under being in screen state of closing, pass screen state Line threshold value, the numerical value of the accelerometer of the terminal and/or gyroscope in preset time range less than predetermined threshold value condition, The volume of current environment is less than the condition of default volume threshold, the volume of current environment and is more than default volume threshold, and works as The volume of preceding environment is judged for the condition of snore.
According to first aspect, first aspect the first, second and the third possible implementation, in first party In the 4th kind of possible implementation in face, determine whether the terminal meets the condition that light intensity is less than default light threshold value Method, including:
According to the detected value of light sensor, determine whether the terminal meets light intensity and be less than default light threshold value Condition;
Or,
Whether the gray value of camera shooting image is determined more than default gray threshold, wherein the gray threshold is light When line strength corresponds to the default light threshold value, the gray value of camera shooting image;
If the gray value of the camera shooting image is more than the gray threshold, it is determined that the terminal meets light Intensity is less than the condition of default light threshold value.
The technical scheme can include the following benefits:Shot by the detected value or camera of light intensity sensor The gray value of image can be judged the light intensity situation of current environment, and then when user is in the state of sleep of turning off the light When, even if user does not shut down actively, it is also possible to perform power-off operation automatically by above-mentioned judgement, and then eliminate the operation of user Process, improves the experience of user.
Second possible implementation according to first aspect, in the 5th kind of possible implementation of first aspect In, determine whether the terminal meets the numerical value of accelerometer and/or gyroscope in preset time range less than predetermined threshold value Method, including:
Determine whether the terminal meets the average value of accelerometer and/or gyroscope in preset time range less than pre- If threshold value.
The technical scheme can include the following benefits:By by accelerometer and/or gyroscope in Preset Time model Average value in enclosing is compared with predetermined threshold value, can accurately judge whether terminal device remains static, it is to avoid Because the motion state to terminal device judge it is inaccurate and caused by shut down erroneous judgement problem.
According to the second aspect of the embodiment of the present disclosure, there is provided one kind shutdown control device, including:
First determining module, when being configured to determine that the unused time for reaching user's setting, determines whether terminal meets table Levy that terminal is not used by least one is pre-conditioned, and at least one for characterizing that terminal is not used by is pre-conditioned including screen Curtain does not have any application program to be less than default light threshold value in operation, light intensity under closing screen state, closing screen state;
Second determining module, determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, it is determined that Terminal is not used by, and performs power-off operation.
The technical scheme can include the following benefits:User can as needed set and meet certainly in the technical scheme The unused time of own sleep habit, when the unused time is reached, terminal device is first to the situation of lighting of screen, and applies journey The ruuning situation of sequence is tentatively judged, when extinguishing when it is determined that being currently at screen, and not having any application program to run, then is entered One step determines whether shutdown according to the light intensity of current environment, can avoid directly being judged according to light intensity condition When, user is currently in use terminal device and by the problem of error cut-off machine.Be conducive to improving the experience of user.
In the first possible implementation of second aspect,
It is described characterize that terminal is not used by least one pre-conditioned also include:
Numerical value of the accelerometer and/or gyroscope of the terminal in preset time range is less than predetermined threshold value.
The technical scheme can include the following benefits:The first threshold is less than by when the light intensity for determining current environment During value, by further judging the acceleration magnitude and/or gyro data in preset time range, can be further true Determine whether terminal device is currently in mobile state, so as to avoid because terminal device be placed in pocket or bag in and perform The situation of error cut-off machine operation.
According to the first possible implementation of second aspect, in second possible implementation of second aspect In,
It is described characterize that terminal is not used by it is at least one pre-conditioned, also include:
The volume of current environment is less than default volume threshold;Or,
The volume of current environment is more than default volume threshold, and the volume of current environment is snore.
The technical scheme can include the following benefits:Judged by the volume to current environment, can be preliminary Whether active user is judged in sleep state, and when the volume of current environment is larger, by judging that the sound in environment is No is that snore can be accurately judged the sleep state of user, it is to avoid because snore causes shutdown to be judged by accident.
Second possible implementation according to second aspect, in the third possible implementation of first aspect In, first determining module pre-conditioned is sentenced according to following tandem to characterize that the terminal is not used by It is disconnected:
Screen does not have any application program to be less than default light in operation, light intensity under being in screen state of closing, pass screen state Line threshold value, the numerical value of the accelerometer of the terminal and/or gyroscope in preset time range less than predetermined threshold value condition, The volume of current environment is less than the condition of default volume threshold, the volume of current environment and is more than default volume threshold, and works as The volume of preceding environment is judged for the condition of snore.
According to second aspect, second aspect the first, second and the third possible implementation, in second party In the 4th kind of possible implementation in face,
First determining module is configured as the detected value according to light sensor, determines whether the terminal meets light strong Condition of the degree less than default light threshold value;
Or,
First determining module is configured as:
Whether the gray value of camera shooting image is determined more than default gray threshold, wherein the gray threshold is light When line strength corresponds to the default light threshold value, the gray value of camera shooting image;
If the gray value of the camera shooting image is more than the gray threshold, it is determined that the terminal meets light Intensity is less than the condition of default light threshold value.
The technical scheme can include the following benefits:Shot by the detected value or camera of light intensity sensor The gray value of image can be judged the light intensity situation of current environment, and then when user is in the state of sleep of turning off the light When, even if user does not shut down actively, it is also possible to perform power-off operation automatically by above-mentioned judgement, and then eliminate the operation of user Process, improves the experience of user.
Second possible implementation according to second aspect, in the 5th kind of possible implementation of second aspect In, first determining module is configured to determine that whether the terminal meets accelerometer and/or gyroscope in Preset Time In the range of average value be less than predetermined threshold value.
The technical scheme can include the following benefits:By by accelerometer and/or gyroscope in Preset Time model Whether the average value in enclosing is compared with default Second Threshold, can accurately judge terminal device in static shape State, it is to avoid because the motion state to terminal device judge it is inaccurate and caused by shut down erroneous judgement problem.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal device, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It is determined that when reaching the unused time of user's setting, determining whether terminal meets and characterizing terminal is not used by least one It is individual pre-conditioned, close screen state, Guan Pingzhuan for characterizing at least one pre-conditioned being in including screen that terminal is not used by There is no any application program to be less than default light threshold value in operation, light intensity under state;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, Perform power-off operation.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the shutdown control method embodiment one according to an exemplary embodiment;
Fig. 2 is a kind of execution method flow diagram of the step 102 according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the shutdown control method embodiment two according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of the shutdown control method embodiment three according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the shutdown control device embodiment one according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the terminal device according to an exemplary embodiment;
Fig. 7 is the block diagram of another terminal device according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the disclosure.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the shutdown control method embodiment one according to an exemplary embodiment, the method Can be performed by shutdown control device, bat shutdown control device can be integrated in the terminal devices such as mobile phone, such as Fig. 1 institutes Show, the method is comprised the following steps:
In a step 101, it is determined whether reach the unused time of user's setting, step 101 is performed if it is not, then circulating, it is no Then, step 102 is performed.
The involved unused time can be user according to meeting that the sleep habit of oneself is set in the embodiment of the present disclosure The unused time of oneself preference, than if any user get used at night 11 points go to bed on time, then user will can shut down Set of time is the random time after or 11 points o'clock sharp in the evening 11.
By taking mobile phone terminal as an example, in practical application, interface can be set by the quarter-bell of mobile phone terminal and the unused time is entered Row is set.After user completes the setting of unused time, the BBP of mobile phone terminal is to open the prison to the unused time Survey, after monitoring that current time reaches the default unused time, then triggering performs step 102.
In a step 102, determine whether terminal meets characterize that terminal is not used by least one pre-conditioned, for table Levy that terminal is not used by least one it is pre-conditioned screen state of closing is in including screen, close screen state under there is no any application journey Sequence is less than default light threshold value in operation, light intensity, wherein, if so, then performing step 103, otherwise circulation performs step 102。
Fig. 2 is a kind of execution method flow diagram of the step 102 according to an exemplary embodiment, as shown in Fig. 2 step Rapid 102 can include following sub-step:
Step 1021, determine screen whether in close screen state, and whether without any application program operation, if It is then to perform step 1022, otherwise circulation performs step 1021.
In practical application, terminal device can be by judging that the opening of the backlight of screen determines whether screen puts out Go out, such as when the backlight of screen is completely in closed mode, then can determine that screen is currently at OFF state.Otherwise say Bright screen is in illuminating state.
And in the judgement of application program, can be monitored by the active state to application program in terminal device, With reach determine terminal device in whether have application program operation purpose, by taking audio playing program as an example, when monitor work as When preceding audio playing program is in active state, then illustrate that user is currently in use audio playing program and is playing music.Now then Should not perform power-off operation, and ought simultaneously meet screen extinguishing, and without any application program by use under conditions of, then say Bright user is not using mobile phone, and light intensity that can further according to environment carries out shutdown judgement.
In step 1022, whether the light intensity of current environment is determined less than default light threshold value, if so, then performing step Rapid 103, no person's circulation performs step 1022.
In a kind of implementation of the embodiment of the present disclosure, can be sensed by the light intensity that will be set on the terminal device Whether the detected value of device is contrasted with default light threshold value, determine current light intensity less than default light threshold value.
It is considered that different user is liked being slept under different light intensities, therefore, in the embodiment of the present disclosure, preset light Line threshold value can also be configured according to the preference of user.Such as, user can be accustomed to oneself by light intensity sensor Sleep environment under brightness value be acquired, and as judge whether shutdown light threshold value.
In another middle implementation of the embodiment of the present disclosure, can also by by the gray value of camera shooting image with Whether the light intensity that default gray threshold is contrasted to determine current environment is less than default light threshold value.Such as, when taking the photograph When being more than default gray threshold as the gray value of head shooting image, then the light intensity of current environment can be determined less than default Light threshold value.Wherein described default gray threshold for light intensity reaches during default light threshold value, the image that camera shoots Gray value.
By taking mobile phone terminal as an example, current phone terminal generally comprises front camera and rear camera, because user exists When placing mobile phone, preposition or rear camera can be blocked, therefore, in actual applications, can respectively pass through front camera Image is obtained with rear camera, and gray value relatively low in the two is contrasted with default gray threshold.So that it is determined that What camera was obtained is the image of surrounding environment.
Certainly, in practical application, it is also possible to above two implementation is respectively adopted the light intensity of current environment is entered Row judges, only when the brightness value of light intensity sensor is less than default light threshold value, and camera shooting image gray value During more than default gray threshold, just judge that the light intensity of current environment is less than default light threshold value.
In step 103, power-off operation is performed.
In the present embodiment, user can as needed set the unused time for meeting oneself sleep habit, be shut down when reaching During the time, terminal device is tentatively judged the situation of lighting of screen, and the ruuning situation of application program first, when it is determined that Screen extinguishing is currently at, and when being run without any application program, the light intensity according further to current environment determines Whether shut down, when can avoid directly being judged according to light intensity condition, user is currently in use terminal device and is closed by mistake The problem of machine.Be conducive to improving the experience of user.
Fig. 3 is a kind of flow chart of the shutdown control method embodiment two according to an exemplary embodiment, such as Fig. 3 institutes Show, the method can include the steps:
In step 201, it is determined whether reach the unused time of user's setting, step 201 is performed if so, then circulating, it is no Then, step 202 is performed.
Step 202, determine screen whether in close screen state, and whether without any application program operation, if so, Step 203 is then performed, otherwise circulation performs step 202.
In step 203, whether the light intensity of current environment is determined less than default light threshold value, if so, then performing step Rapid 204, no person's circulation performs step 203
In step 204, determine the numerical value of accelerometer and/or gyroscope in preset time range whether less than default Threshold value, if so, then performing step 205, otherwise circulation performs step 204.
In a kind of implementation of the embodiment of the present disclosure, can be existed by the accelerometer terminal device on terminal device Instantaneous acceleration in preset time range is measured, when all instantaneous accelerations of measurement are not less than predetermined threshold value, Then determine that terminal device remains static, and now can further perform power-off operation.Certainly, herein it is merely illustrative explanation and It is not to unique restriction of the invention, such as, in real-time application, it is also possible to which terminal device is average in preset time range Acceleration is compared with predetermined threshold value, when average acceleration is less than predetermined threshold value, then can determine that terminal device is in quiet Only state.
In another implementation of the embodiment of the present disclosure, can be by the gyroscope on terminal device in Preset Time model The instantaneous numerical value of multiple in enclosing is contrasted with predetermined threshold value respectively, if all instantaneous numerical value are respectively less than predetermined threshold value, it is determined that Terminal device remains static.Similar, in practical application, can also be by average of the gyroscope in preset time range Value is contrasted with predetermined threshold value, when mean values are less than predetermined threshold value, it is determined that terminal device remains static.
Certainly, in practical application, by the way of aforesaid way combination whether terminal device can also be judged in static State, such as, and when the numerical value of acceleration magnitude of the terminal device in preset time range and gyroscope is respectively less than predetermined threshold value, Then determine that terminal device remains static.
In step 205, power-off operation is performed.
In the present embodiment, when it is determined that the light intensity of current environment is less than default light threshold value, by further to pre- If the acceleration magnitude and/or gyro data in time range are judged, can further determine that terminal device it is current whether Be in mobile state, so as to avoid because terminal device be placed in pocket or bag in and perform the feelings without power-off operation by mistake Condition.
Fig. 4 is a kind of flow chart of the shutdown control method embodiment three according to an exemplary embodiment, such as Fig. 4 institutes Show, the method can include the steps:
In step 301, it is determined whether reach the unused time of user's setting, if so, then performing step 302, otherwise, follow Ring performs step 301.In step 302, whether whether screen is determined in pass screen state, and is existed without any application program Operation, if so, then performing step 303, otherwise circulation performs step 302.
In step 303, whether the light intensity of current environment is determined less than default light threshold value, if so, then performing step Rapid 304, no person's circulation performs step 303.
In step 304, determine the numerical value of accelerometer and/or gyroscope in preset time range whether less than default Threshold value, if so, then performing step 305, otherwise circulation performs step 304.
The executive mode and beneficial effect of step 301- steps 304 and step 201- steps 204 in the disclosed embodiments Executive mode it is similar with beneficial effect, repeat no more herein.
In step 305, the volume of current environment is determined less than default volume threshold, if so, step 307 is then performed, Otherwise perform step 306.
In practical application, the sound of surrounding environment is acquired by the sound-recording function of terminal device, and determined current Whether the decibels of ambient sound are less than default volume threshold, if so, then explanation is currently in more quiet sleep environment, Now can directly perform power-off operation.And current environment decibels than or equal to default volume threshold, then also have It is probably, because the sound of snoring of user causes, now to need further to be judged.
Within step 306, whether the sound for determining current environment is snore, if then performing step 307, is otherwise performed Step 305.
Alternatively, consistency analysis will be carried out between the sound spectrum of current environment and default sound of snoring spectral model, when When similarity between the sound spectrum of current environment and default sound of snoring spectral model exceedes predetermined threshold value, it is determined that current to use Family is in snoring state, power-off operation can be now performed, otherwise, it is necessary to the step of re-executing step 305.
In step 307, power-off operation is performed.
In the present embodiment, judged by the volume to current environment, can tentatively judge whether active user is in Sleep state, and when the volume of current environment is larger, by judging whether the sound in environment is that snore can be to user Sleep state accurately judged, it is to avoid because snore cause shutdown judge by accident.
Fig. 5 is a kind of block diagram of the shutdown control device embodiment one according to an exemplary embodiment, such as Fig. 5 institutes Show, the device includes:
First determining module 11, when being configured to determine that the unused time for reaching user's setting, determines whether terminal meets Characterize that terminal is not used by is at least one pre-conditioned, at least one for characterizing that terminal is not used by it is pre-conditioned including Screen does not have any application program to be less than default light threshold value in operation, light intensity under being in screen state of closing, pass screen state;
Second determining module 12, determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, really Determine terminal to be not used by, perform power-off operation.;
Optionally, first determining module 11 is configured as the detected value according to light sensor, determines the terminal Whether condition that light intensity be less than default light threshold value is met;Or,
Whether the gray value of camera shooting image is determined more than default gray threshold, wherein the gray threshold is light When line strength corresponds to the default light threshold value, the gray value of camera shooting image;
If the gray value of the camera shooting image is more than the gray threshold, it is determined that the terminal meets light Intensity is less than the condition of default light threshold value.
The device that the present embodiment is provided is able to carry out technical scheme as shown in Figure 1 or 2, its executive mode and beneficial effect Fruit seemingly, repeats no more herein.
It is described to characterize eventually on the basis of Fig. 5 embodiments in the shutdown control device that another embodiment of the disclosure is provided What end was not used by least one pre-conditioned also includes:
Numerical value of the accelerometer and/or gyroscope of the terminal in preset time range is less than predetermined threshold value.
Alternatively, first determining module 11 be additionally configured to determine the terminal whether meet accelerometer and/or Average value of the gyroscope in preset time range is less than predetermined threshold value.
The device that the embodiment is provided is able to carry out technical scheme as shown in Figure 3, its executive mode and beneficial effect class Seemingly, repeat no more herein.
In the shutdown control device that the another embodiment of the disclosure is provided, on the basis of above-described embodiment, the sign What terminal was not used by least one pre-conditioned also includes:
The volume of current environment is less than default volume threshold;Or,
The volume of current environment is more than default volume threshold, and the volume of current environment is snore.
Optionally, first determining module 11 is pre- to characterize that the terminal is not used by according to following tandem If condition is judged:
Screen does not have any application program to be less than default light in operation, light intensity under being in screen state of closing, pass screen state Line threshold value, the numerical value of the accelerometer of the terminal and/or gyroscope in preset time range less than predetermined threshold value condition, The volume of current environment is less than the condition of default volume threshold, the volume of current environment and is more than default volume threshold, and works as The volume of preceding environment is judged for the condition of snore.
The device that the embodiment is provided is able to carry out technical scheme as shown in Figure 4, its executive mode and beneficial effect class Seemingly, repeat no more herein.
On the shutdown control device in above-described embodiment, wherein modules, submodule performs the concrete mode of operation It has been described in detail in the embodiment about the method, explanation will be not set forth in detail herein.
The built-in function and structure of shutdown control device are the foregoing described, as shown in fig. 6, in practice, shutdown control dress Put and be capable of achieving to be terminal device, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It is determined that when reaching the unused time of user's setting, determining whether terminal meets and characterizing terminal is not used by least one It is individual pre-conditioned, close screen state, Guan Pingzhuan for characterizing at least one pre-conditioned being in including screen that terminal is not used by There is no any application program to be less than default light threshold value in operation, light intensity under state;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, Perform power-off operation.
In the present embodiment, user can as needed set the unused time for meeting oneself sleep habit, be shut down when reaching During the time, terminal device is tentatively judged the situation of lighting of screen, and the ruuning situation of application program first, when it is determined that Screen extinguishing is currently at, and when being run without any application program, the light intensity according further to current environment determines Whether shut down, when can avoid directly being judged according to light intensity condition, user is currently in use terminal device and is closed by mistake The problem of machine.Be conducive to improving the experience of user.
Fig. 7 is the block diagram of another terminal device according to an exemplary embodiment.For example, terminal device 800 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Reference picture 7, terminal device 800 can include following one or more assemblies:Processing assembly 802, memory 804, Electric power assembly 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, And communication component 816.
The integrated operation of the usual control terminal equipment 800 of processing assembly 802, such as with display, call, data are led to Letter, camera operation and the associated operation of record operation.Processing assembly 802 can include one or more processors 820 to hold Row instruction, to complete all or part of step of above-mentioned method.Additionally, processing assembly 802 can include one or more moulds Block, is easy to the interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, with Facilitate the interaction between multimedia groupware 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in equipment 800.These data are shown Example includes the instruction for any application program or method operated on terminal device 800, contact data, telephone directory number According to, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they Combination realize that such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, quick flashing Memory, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of terminal device 800.Electric power assembly 806 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for terminal device 800.
Multimedia groupware 808 is included in one screen of output interface of offer between the terminal device 800 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel is touched including one or more Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip The border of action, but also the detection duration related to the touch or slide and pressure.In certain embodiments, Multimedia groupware 808 includes a front camera and/or rear camera.When equipment 800 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting Head and rear camera can be a fixed optical lens systems or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when terminal device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone It is configured as receiving external audio signal.The audio signal for being received can be further stored in memory 804 or via logical Letter component 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
, to provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, the state for providing various aspects for terminal device 800 Assessment.For example, sensor cluster 814 can detect the opening/closed mode of equipment 800, the relative positioning of component, such as institute Display and keypad that component is terminal device 800 are stated, sensor cluster 814 can also detect terminal device 800 or terminal The position of 800 1 components of equipment changes, and user is presence or absence of with what terminal device 800 was contacted, the orientation of terminal device 800 Or the temperature change of acceleration/deceleration and terminal device 800.Sensor cluster 814 can include proximity transducer, be configured to The presence of object near being detected when without any physical contact.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 814 can be with Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal device 800 and other equipment. Terminal device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 800 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of terminal device 800.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the treatment of mobile terminal When device is performed so that mobile terminal is able to carry out a kind of shutdown control method, and methods described includes:
It is determined that when reaching the unused time of user's setting, determining whether terminal meets and characterizing terminal is not used by least one It is individual pre-conditioned, close screen state, Guan Pingzhuan for characterizing at least one pre-conditioned being in including screen that terminal is not used by There is no any application program to be less than default light threshold value in operation, light intensity under state;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, Perform power-off operation.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appended claim.

Claims (15)

1. a kind of terminal closedown control method, it is characterised in that methods described includes:
It is determined that when reaching the unused time of user's setting, determine whether terminal meets characterize that terminal is not used by least one pre- If condition, for characterizing that terminal is not used by least one pre-conditioned be in screen state of closing including screen, close under screen state There is no any application program to be less than default light threshold value in operation, light intensity;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, perform Power-off operation.
2. method according to claim 1, it is characterised in that at least one default bar that the sign terminal is not used by Part also includes:
Numerical value of the accelerometer and/or gyroscope of the terminal in preset time range is less than predetermined threshold value.
3. method according to claim 2, it is characterised in that at least one default bar that the sign terminal is not used by Part, also includes:
The volume of current environment is less than default volume threshold;Or,
The volume of current environment is more than default volume threshold, and the volume of current environment is snore.
4. method according to claim 3, it is characterised in that according to following tandem to characterize the terminal not by What is used pre-conditioned is judged:
Screen does not have any application program to be less than default light threshold in operation, light intensity under being in screen state of closing, pass screen state It is worth, the numerical value of the accelerometer of the terminal and/or gyroscope in preset time range is less than the condition of predetermined threshold value, current The volume of environment is less than the condition of default volume threshold, the volume of current environment and is more than default volume threshold, and works as front ring The volume in border is judged for the condition of snore.
5. method according to any one of claim 1 to 4, it is characterised in that determine whether the terminal meets light The method that intensity is less than the condition of default light threshold value, including:
According to the detected value of light sensor, determine whether the terminal meets the bar that light intensity is less than default light threshold value Part.
6. method according to any one of claim 1 to 4, it is characterised in that determine whether the terminal meets light The method that intensity is less than the condition of default light threshold value, including:
Whether the gray value of camera shooting image is determined more than default gray threshold, wherein the gray threshold is that light is strong When degree corresponds to the default light threshold value, the gray value of camera shooting image;
If the gray value of the camera shooting image is more than the gray threshold, it is determined that the terminal meets light intensity Less than the condition of default light threshold value.
7. method according to claim 3, it is characterised in that determine whether the terminal meets accelerometer and/or top The method that numerical value of the spiral shell instrument in preset time range is less than predetermined threshold value, including:
Determine whether the terminal meets the average value of accelerometer and/or gyroscope in preset time range and be less than default threshold Value.
8. a kind of shutdown control device, it is characterised in that described device includes:
First determining module, when being configured to determine that the unused time for reaching user's setting, determines whether terminal meets sign eventually It is at least one pre-conditioned that end is not used by, at least one for characterizing that terminal is not used by it is pre-conditioned including screen at There is no any application program to be less than default light threshold value in operation, light intensity under closing screen state, closing screen state;
Second determining module, be configured to determine that the terminal meet each characterize terminal be not used by it is pre-conditioned when, Determine that terminal is not used by, perform power-off operation.
9. device according to claim 8, it is characterised in that
It is described characterize that terminal is not used by least one pre-conditioned also include:
Numerical value of the accelerometer and/or gyroscope of the terminal in preset time range is less than predetermined threshold value.
10. device according to claim 9, it is characterised in that what the sign terminal was not used by least one presets Condition, also includes:
The volume of current environment is less than default volume threshold;Or,
The volume of current environment is more than default volume threshold, and the volume of current environment is snore.
11. devices according to claim 10, it is characterised in that first determining module is according to following tandem Pre-conditioned judge to characterize that the terminal is not used by:
Screen does not have any application program to be less than default light threshold in operation, light intensity under being in screen state of closing, pass screen state It is worth, the numerical value of the accelerometer of the terminal and/or gyroscope in preset time range is less than the condition of predetermined threshold value, current The volume of environment is less than the condition of default volume threshold, the volume of current environment and is more than default volume threshold, and works as front ring The volume in border is judged for the condition of snore.
12. device according to any one of claim 8 to 11, it is characterised in that first determining module is configured It is the detected value according to light sensor, determines whether the terminal meets the condition that light intensity is less than default light threshold value.
13. device according to any one of claim 8 to 11, it is characterised in that first determining module is configured For:
Whether the gray value of camera shooting image is determined more than default gray threshold, wherein the gray threshold is that light is strong When degree corresponds to the default light threshold value, the gray value of camera shooting image;
If the gray value of the camera shooting image is more than the gray threshold, it is determined that the terminal meets light intensity Less than the condition of default light threshold value.
14. devices according to claim 10, it is characterised in that first determining module is configured to determine that the end Whether end meets the average value of accelerometer and/or gyroscope in preset time range less than predetermined threshold value.
A kind of 15. terminal devices, it is characterised in that including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It is determined that when reaching the unused time of user's setting, determine whether terminal meets characterize that terminal is not used by least one pre- If condition, for characterizing that terminal is not used by least one pre-conditioned be in screen state of closing including screen, close under screen state There is no any application program to be less than default light threshold value in operation, light intensity;
Determine the terminal meet each characterize terminal be not used by it is pre-conditioned when, determine that terminal is not used by, perform Power-off operation.
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 true CN106843706A (en) 2017-06-13
CN106843706B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241506A (en) * 2017-06-19 2017-10-10 珠海格力电器股份有限公司 The method and device of a kind of alarm clock jingle bell of control intelligent terminal
CN107315522A (en) * 2017-06-16 2017-11-03 广东欧珀移动通信有限公司 A kind of method of video playback, terminal and storage medium
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
CN110491419A (en) * 2019-08-26 2019-11-22 广东小天才科技有限公司 A kind of control method for playing back, system and terminal device

Citations (6)

* 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
US20140022223A1 (en) * 2012-07-20 2014-01-23 Euijung JUNG Mobile terminal and method of controlling a mobile terminal
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

Patent Citations (6)

* 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
US20140022223A1 (en) * 2012-07-20 2014-01-23 Euijung JUNG Mobile terminal and method of controlling a mobile terminal
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

Cited By (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
CN110491419A (en) * 2019-08-26 2019-11-22 广东小天才科技有限公司 A kind of control method for playing back, system and terminal device

Also Published As

Publication number Publication date
CN106843706B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN106843706A (en) shutdown control method, device and terminal device
CN107426428A (en) Electronic equipment and display lightness regulating method
CN105045622A (en) Terminal alarming method and apparatus
CN107453964A (en) Sleep environment management method and device
CN107582028A (en) Sleep monitor method and device
CN105469003B (en) screen protection method and device
CN107708187A (en) The control method and device of sleep pattern
CN104332037B (en) method and device for alarm detection
CN106790955A (en) Terminal control method and device
CN105892618A (en) Information display method and device and electronic device
CN108227933A (en) The control method and device of glasses
CN106502859A (en) The method and device of control terminal equipment
CN107308563A (en) The method and device of mouth mask, the filter core of prompting changing mouth mask
CN105516483A (en) Equipment control method, device and terminal
CN104182039B (en) Apparatus control method, device and electronic equipment
CN104020628B (en) Flash lamp prompting method and device thereof
CN105700362A (en) Equipment control method and apparatus thereof
CN105390120B (en) bright screen control method and device
CN106528385A (en) System fluency monitoring method and apparatus, and terminal
CN107203264A (en) The control method of display pattern, device, electronic equipment
CN107566626A (en) Terminal state control method and device
CN108476379A (en) Information recording method and information record carrier
CN108090441A (en) Method for controlling fingerprint identification, mobile terminal and storage medium
CN106921797A (en) Information prompting method and device
CN105517280B (en) A kind of method and apparatus being illuminated

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