1. Technical Field
The present disclosure relates to an electronic device with power saving function and an operating method thereof.
2. Description of Related Art
Power saving solutions for portable electronic devices often adopt standby or sleep states. However, when a portable electronic apparatus is operated for a period of time with no input received, such as during audio or video playback, such power-saving modes may be implemented in spite of the current operation, and the audio or video playback is interrupt.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Once power saving function of the electronic device 1 is enabled, the distance measurement module 122 calculates the distance between the electronic device 1 and any object in a proximal area of the electronic device 1 according to the image obtained by the image obtaining unit 2, and stores the distance as an original distance to the data storage 13. The distance measurement module 123 periodically obtains the distance between the object and the electronic device 1, and stores the distance as a current distance to the data storage 13 after the original distance determined. If there is no object in the proximal area of the electronic device 1, the distance measurement by the distance measurement module is regarded as infinite.
The computation module 123 is configured for computing a difference between the original distance and the current distance. The determination module 124 determines whether the difference between the original distance and the current distance falls within a predetermined range. If the difference between the original distance and the current distance does not fall into the predetermined range, the control module 125 puts the electronic device 1 into power saving mode. If the difference between the original distance and the current distance falls within the predetermined range, the current distance is taken as the original distance and the original distance stored in the data storage 11 is updated accordingly. The predetermined range can be predefined by user input.
When the electronic device 1 is in operation, a standard distance range between the electronic device 1 and the object in a proximal area of the electronic device 1 is generated. For example, the standard distance range for the computer is 0-100 cm, and the standard distance range for e-book is 0-50 cm, if the distance between the object and the electronic device 1 falls within the standard distance range, it is assumed that a user is operating or will operate the electronic device 1, and, conversely, if the distance between the object and the electronic device 1 does not fall into the standard distance range, it can be regarded that no user is present.
In another embodiment, if the difference between the original distance and the current distance falls within the predetermined range, the determination module 124 further determines whether the current distance falls within the standard distance range. If the current distance does not fall into the standard distance, the electronic device 1 is put into power saving mode. If the current distance falls within the standard distance range, the computation module 123 takes the current distance as the original distance and the distance measurement module 122 continues obtaining current distance measurements.
Once the electronic device 1 is in the power-saving mode, the distance measurement module 122 obtains the distance between the object and the electronic device 1 according to the image periodically obtained by the image obtaining unit 2. The predetermined module 124 determines whether the distance falls within the standard distance range. If the distance falls within the standard distance range, the control module 125 recovers the electronic device 1 from the power saving mode.
In step S403, the distance measurement module 123 periodically obtains the distance between the object and the electronic device 1, and stores the distance as a current distance to the data storage 13.
In step S404, the computation module 123 computes the difference between the original distance and the current distance.
In step S405, the determination module 124 determines whether the difference between the original distance and the current distance falls within the predetermined range.
If the difference between the original distance and the current distance does not fall into the predetermined range, in step S406 the control module 125 puts the electronic device 1 into power-saving mode.
If the difference between the original distance and the current distance falls within the predetermined range, in step S 407, the determination module 124 further determines whether the current distance falls within the standard distance range.
If the current distance does not fall into the standard distance, step S406 is implemented.
If the current distance falls into to the standard distance, in step S408, the current distance is taken as the original distance, and step S403 is implemented.
In step S502, the predetermined module 124 determines whether the distance falls within the standard distance range. If the distance does not fall within the standard distance range, step S 501 is implemented.
If the distance falls within the standard distance range, in step S503, the control module 125 recovers the electronic device 1 from the power saving mode.
Although the present disclosure has been specifically described on the basis of preferred embodiments, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
99125202 | Jul 2010 | TW | national |