Skip to content

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

Open
MrBurgerCZ wants to merge 1 commit intohyprwm:mainfrom
MrBurgerCZ:main
Open

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

Conversation

@MrBurgerCZ
Copy link

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.

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.

1 participant