aggressive screensaver [de]activation
[ozzloy@gmail.com/oble] / README
CommitLineData
a92408ab 1prevent the system from sleeping when a user is looking at the screen.
2
3this is accomplished using the built-in camera on my laptop screen's top bezel
4and opencv to detect a face. i'm going to use the API used by the default movie
5player in ubuntu for preventing system sleeps.
6
7OTHER IDEAS:
ccb0e7df 8* detecting a face could simulate user activity. this would prevent sleeping
a92408ab 9and bring up the password prompt when the system is already asleep.
10 * how cool would that be? if the system is asleep and you sit down at it, the
11 password prompt comes up before you touch anything!
12 * or if the screen saver doesn't lock the screen, then the laptop just wakes
13 up.
ccb0e7df 14 * DONE!
15* fire up the face detector only just before going to inactive mode.
16 * that way the camera isn't running all the time
17 * maybe start 10 seconds before going inactive, then run until activity
18* authenticating a user based on face recognition (as opposed to face
a92408ab 19detection)
20 * much more difficult to do reliably
ccb0e7df 21* be more aggressive with turning off the screen. dim the screen as soon as
a92408ab 22it's not being looked at. turn it off soon thereafter.
23 * could be enough to save battery. would need to power the camera sometimes,
24 but would save on backlight. need to test.
ccb0e7df 25* don't prevent sleep when face is detected, but user isn't actually looking at
a92408ab 26screen.
27 * requires pose estimation.
28 * also requires estimating the direction of the eye.