Skip to content

auth/fingerprint: implement retry logic for device connection and verification#943

Closed
MrBurgerCZ wants to merge 1 commit into
hyprwm:mainfrom
MrBurgerCZ:main
Closed

auth/fingerprint: implement retry logic for device connection and verification#943
MrBurgerCZ wants to merge 1 commit into
hyprwm:mainfrom
MrBurgerCZ:main

Conversation

@MrBurgerCZ

Copy link
Copy Markdown

I noticed that because of my fingerprint scanner drivers (open-fprintd + python-validity) it takes some time for it to initialize after resuming from suspend. and also that hyprlock just doesn't even wait. so I vibecoded (not exactly proud of that, but I don't know c++ yet, sorry) something hoping to fix it. it probably isn't good, but it works on my system.

i know that this should probably be fixed on the driver side, but I find this more useful and broader.

changes

  • crash fix: added try-catch blocks to prevent crashes when the service isn't ready immediately.
  • retry logic: if the device is missing on wake, it now retries in a loop instead of failing instantly.
  • config: added auth:fingerprint:init_retries and auth:fingerprint:init_retry_delay to control the patience level.

@PointerDilemma

Copy link
Copy Markdown
Collaborator

So #971 is a slightly better version of this, but please read there for why I think it isn't a good idea.

@MrBurgerCZ

Copy link
Copy Markdown
Author

Totally understand that, I was expecting this kind of outcome.

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