CPC G06F 1/3231 (2013.01) [G01S 13/08 (2013.01); G06F 1/3265 (2013.01)] | 18 Claims |
1. A method for operating an electronic device, the method comprising:
while a display is in a low power mode, detecting, by a controller based on data collected by a time of flight (ToF) sensor, a movable object within a field of view of the electronic device;
in response to the detecting initiating a period of detection having a plurality of frames, the period of detection being a time period over which the controller detects a distance between the movable object and the display;
for each of the plurality of frames, changing a distance value associated with the corresponding frame to reflect whether the movable object is moving near or further from the electronic device, wherein in response to determining that the movable object is moving near or further from the electronic device, changing the distance value comprises incrementing or decrementing the distance value of an immediately preceding frame by a change value that increases with increasing frame count of the plurality of frames within the period of detection;
detecting that the distance value after the period of detection is less than a threshold distance value indicative of the movable object approaching the display; and
in response to determining that the distance value is less than the threshold distance value, waking up the display.
|