AceCentre / EyeCommander

An open source computer vision interface that tracks eye movements for individuals with severely-limited mobility.
https://docs.acecentre.org.uk/eyecommander
MIT License
53 stars 6 forks source link

When the computer goes to sleep the camera doesn't wake #78

Open gavinhenderson opened 2 years ago

gavinhenderson commented 2 years ago

Describe the bug When the computer goes to sleep the camera doesn't wake so you have to restart EyeCommander

To Reproduce Steps to reproduce the behavior:

  1. Open eyeCommander
  2. Let your PC go to sleep
  3. Wake your PC
  4. EyeCommander doesnt have access to the camera

Expected behavior The camera to be working

Additional context My guess is when the computer goes to sleep it revokes camera access. Then when it wakes EyeCommander doesnt ask for it back, if you opened settings it would be forced to ask for it back.

We should probably listen to system events and force a reload after wake