Skip to content

fingerprint: retry claim/verify after resume instead of dying silently - #1066

Closed
ZbyszekK wants to merge 1 commit into
hyprwm:mainfrom
ZbyszekK:fp-resume-rearm
Closed

ZbyszekK wants to merge 1 commit into
hyprwm:mainfrom
ZbyszekK:fp-resume-rearm

Conversation

@ZbyszekK

@ZbyszekK ZbyszekK commented Sep 1, 2026

Copy link
Copy Markdown

Similar fix as #1049 but more complex failing scenario.

Fingerprint session goes stale after suspend if the reader re-enumerates (e.g. USB power-cycles on longer sleeps). VerifyStart on the old proxy fails silently and fingerprint auth just stays dead until a password attempt forces a reclaim.

Fix: on wake, retry Claim/VerifyStart with backoff (500ms, 10 tries max), dropping the stale device proxy on failure so a fresh one gets fetched.

Not doing a forced VerifyStop+Release on every wake (when the reader didn't lose power a.k.a short suspend), since it hits a still-live verify session. Only tears down on actual failure.

Tested on Synaptics Prometheus (06cb:00bd), short + long suspend, both recover without password fallback.

@ZbyszekK

ZbyszekK commented Sep 2, 2026

Copy link
Copy Markdown
Author

Closing as this MAX_VERIFY_RETRIES and RETRY_INTERVAL are dirty and shall not become part of the main code base. Hovewer, tha patch itself is fixing the root cause in my configuration of fingerprint device changing its device number on longer suspend.

@ZbyszekK ZbyszekK closed this Sep 2, 2026
@sudosteve

Copy link
Copy Markdown

I'm confused. It fixes your issue but your closing the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants