Might eat your kangaroo.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Anthony Wang 2024-03-20 14:46:09 -04:00
parent 08e12c8ad3
commit 2be568475b
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -52,7 +52,7 @@ So, to recap, the bug actually has isn't KDE Plasma's fault. I guess it's an `fp
Another potential problem is that `fprintd` waits around 30 seconds after a successful login before quitting, so sleeping and waking up and sleeping and waking up can cause the bug to reappear during the second wake-up, but I don't think I'd ever run into this corner case except while debugging this bug. When debugging, I had to manually run `sudo killall fprintd` between sleep-wake up tests.
It turns out the 30 second timeout is [hardcoded in the source code](https://gitlab.freedesktop.org/libfprint/fprintd/-/blob/master/src/fprintd.h?ref_type=heads#L29), so I changed it to 1 and recompiled fprintd, which fixed this problem. I might try contributing this fix to fprintd, but maybe they have a reason for 30 as the default. Also, fprintd doesn't seem actively maintained anymore.
It turns out the 30 second timeout is [hardcoded in the source code](https://gitlab.freedesktop.org/libfprint/fprintd/-/blob/master/src/fprintd.h?ref_type=heads#L29), so I changed it to 1 and recompiled fprintd, which fixed this problem. (Sidenote: the [fprintd README](https://gitlab.freedesktop.org/libfprint/fprintd/-/blob/master/README?ref_type=heads) says "Might eat your kangaroo") I might try contributing this fix to fprintd, but maybe they have a reason for 30 as the default. Also, fprintd doesn't seem actively maintained anymore.
Maybe there's a better way to solve this. If you know of a better solution, please let me know! It's definitely a bit upsetting that I need to mess with PAM config files, udev rules, systemd override files, and recompile fprintd to get my fingerprint reader to work properly, but I guess that's the struggle of Linux sometimes. I wish Lenovo could provide better support for Linux on my laptop model, since they do sell a preinstalled Ubuntu version of that model.