elanmoc: Implement suspend/resume support
With !270 (closed), it is now possible to support verifying/identifying for a long period of time, including while the laptop is suspended. libfprint will correctly configure USB wakeup when needed.
In general, all that is needed should be implementing suspend
and resume
methods that stop/start the urbs to query the device state. You can use the new fpi_device_critical_enter
and fpi_device_critical_leave
to ensure the driver is in the correct state to suspend/resume.
An working example is the synaptics driver, see:
If you have any questions, please ping me. This is relatively low-priority for now, as it requires more changes in gnome-shell, GDM and fprintd to work correctly.
CC: @hermanlin, @ArronYen