1. Technical Field
The present disclosure relates to control systems, and particularly to a control system and a method for power shutdown of an electronic device.
2. Description of Related Art
When user is busy or in a hurry, it is easy to forget turning off electronic devices, such as a computer, resulting in waste of energy and possible damage for the electronic devices.
Therefore, what is needed is a control system for power shutdown to overcome the above described limitations.
The processor 23 includes a sound acquiring module 231, a first determining module 232, and a control module 234 which are collection of software instructions executed by the processor 23.
The sound acquiring module 231 acquires the decibel level of the sound from the sound monitor 21. The first determining module 232 determines whether or not the acquired decibel level of the sound is within a predetermined range. For example, the acquired decibel level is 2 dB, and the predetermined range is from 1 dB to 6 dB, the acquired decibel level is within the predetermined range. The control module 234 controls the electronic device 2 to enter a shutdown state when the acquired decibel level of the sound is within the predetermined range.
The processor 23 further includes a switching module 235 which is collection of software instructions. The switching module 235 turns on/down the sound monitor 21 and the camera module 22 to switch the sound monitor 21 and the camera module 22 between an enabled state and a disabled state in response to a user operation. Therefore, when a user does not need the electronic device 2 to be automatically shut down by the control system 1, the user can manually turn down the sound monitor 21. In one embodiment, the switching module 235 may be a switch or a key, for example.
The processor 23 further includes an image acquiring module 236 and a second determining module 237. The switching module 235 further turns on the camera module 22 to acquire the image of the surrounding environment when the acquired decibel level of the sound is within the predetermined range. The image acquiring module 236 acquires the image of surrounding environment from the camera module 22. The second determining module 237 determines whether or not the acquired image matches a predetermined image. In one embodiment, the second determining module 237 determines whether or not each pixel value of the acquired image is equal to each pixel value of the predetermined image to determine whether or not the acquired image matches the predetermined image. The control module 234 controls the electronic device 2 to enter the shutdown state when the acquired image matches the predetermined image. In other embodiment, the second determining module 237 further determines whether or not a number of acquired images match a number of predetermined images. The control module 234 controls the electronic device 2 to enter the shutdown state when the number of acquired images match the number of predetermined images.
In step S601, the switching module 235 turns on the sound monitor 21 in response to the user operation.
In step S602, the sound acquiring module 231 acquires the decibel level of the sound from the sound monitor 21.
In step S603, the first determining module 232 determines whether or not the acquired decibel level of the sound is within the predetermined range, if yes, the procedure goes to step S604, if no, the procedure goes to step S602.
In step S604, the switching module 235 turns on the camera module 22.
In step S605, the image acquiring module 236 acquires the image of the surrounding environment from the camera module 22.
In step S606, the second determining module 237 determines whether or not the acquired image of the surrounding environment matches the predetermined image, if yes, the procedure goes to step S607, if no, the procedure goes to step S605.
In step S607, the control module 234 controls the electronic device 2 to enter the shutdown state.
Although various embodiments have been specifically described, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013102354985 | Jun 2013 | CN | national |