feat(systemd): add robust resume service for sensor re-initialization#1
Open
sidneijp wants to merge 2 commits into
Open
feat(systemd): add robust resume service for sensor re-initialization#1sidneijp wants to merge 2 commits into
sidneijp wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(systemd): add robust resume service for sensor re-initialization
Problem
Fingerprint sensor fails to re-initialize correctly after system suspend/hibernate on modern kernels. The
python3-validityservice loses its connection to the hardware or enters an inconsistent state, preventing fingerprint authentication upon resume.Solution
Add a dedicated systemd resume service
python3-validity-resume.servicethat explicitly restartspython3-validity.serviceandopen-fprintd.servicewhen the system wakes up. This ensures a clean state for the driver and the fprintd bridge.Environment Information
Hardware
06cb:009aSoftware
7.0.0-15-generic0.21.0(KDE Plasma/Breeze)libpam-modules 1.7.0,libpam-systemd 259.5open-fprintd(0.7~ppa2)python3-validity(0.15+)Changes
debian/python3-validity-resume.serviceto trigger on resume targets.debian/rulesto ensure proper installation.Steps to Reproduce
sudoor login).USBError [Errno 19]. User is forced to use password fallback.Validation Steps
python3-validity-resume.service.python3-validity-resume.servicetriggered successfully:systemctl status python3-validity-resume.service.sudo <command>correctly prompts for fingerprint authentication (if enabled in PAM).Resolves uunicorn#254.