-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fingerprint auth breaks completely on suspend/resume WITHOUT python-validity #577
Comments
Since hyprlock does not provide any further details on the error, I can't figure out whether the "connection" that is being "timed out" is the one of hyprlock to the system bus, or the one of fprintd to the sensor (which is a Synaptics, Inc. 06cb:00f9), or any other "connection". How can I find that out? |
To me it seems like the root cause is that we fail to stop verification and that causes the error when we call startVerify again. Adding some additional logging might help here, but i will look into to code and see if i find anything later today ;) |
@PaideiaDilemma Yeah, that seems like the case. The question is why it fails to stop verifying. |
@ipg0 |
@PaideiaDilemma sure, here it is. There's like a couple seconds before/after suspend as well. Upd: GitHub never finishes uploading for whatever reason, here's a gist: |
@PaideiaDilemma I tried to add When it doesn't, it fails with a different error (which is much clearer):
It seems now that there is a race condition between the sensor/internal hub powering up and hyprlock trying to claim the sensor, and when hyprlock wins, it fails to do so. Is there any way to wait for the device to reconnect after resume? I have confirmed that the sensor is disconnecting and reconnecting during the suspend/resume cycle. |
@ipg0 can you try this patch? This just retries to Claim the device. Honestly don't really know what else to do about that problem. And I am not sure if everything is right, because we never explicitly "Release" the device when we go to sleep. So I am unsure why we need to reclaim it. Also thanks for the pointer to |
@PaideiaDilemma I'll try this later today, thank you |
hey folks, any updates on this? looks like I'm having the same issue. I'm just using the raw |
@rzru wdym by raw @PaideiaDilemma As per the bug in question, it seems to have disappeared even without the patch after I removed hyprlock from the hypridle config for some time and then added it back. I have no idea why that could've happened, since iirc I didn't even run an update within the timeframe. |
Ahh that makes a lot of sense. |
I'm still experiencing this - I'm unsure as to whether it's a firmware issue on my side or not. I'll do some testing, but I'd like to know if other people have actually had this fix be successful - if they have, then I can be fairly confident it's on my side. |
Regression?
No
Hyprlock Info and Version
Hyprlock version 0.5.0
Hyprlock config
Compositor Info and Version
System/Version info
Description
This is NOT a duplicate of #531 - everyone there is using
python-validity
andopen-fprintd
, and it seems like the issue is with that.I am using regular
fprintd
and hyprlock's fingerprint functionality is breaking on suspend.Hyprlock is set up to run before suspend via hypridle.
How to reproduce
Crash reports, logs, images, videos
When I just run hyprlock for the first time, it works correctly.
When the laptop suspends and then resumes, hyprlock hangs up for about 10 seconds and fingerprint auth does not work. The logs contain the following:
fprintd
logs snow nothing.Upon further investigation, it seems to me that there might be something wrong with DBus system bus just before suspend.
dbus-monitor --system
logs are below (relevant section):The text was updated successfully, but these errors were encountered: