Recover fingerprint authentication before user sessions resume
This commit is contained in:
1 parent
d2a6aafc71
commit
da66a3ae6c
6 files changed
+95
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Fingerprint resume recovery
|
||||
|
||||
Restores fingerprint unlocking when the reader stops working after sleep on
|
||||
KDE Plasma 6.8. Tested with Fedora 45 and the Framework Laptop 13 Pro's Goodix
|
||||
reader.
|
||||
|
||||
```bash
|
||||
sudo dnf install fingerprint-resume-recovery
|
||||
```
|
||||
|
||||
The package restarts an active `fprintd` service after wake, before the desktop
|
||||
continues authentication. It leaves Fedora's login software unchanged and runs
|
||||
only during resume. No reboot or configuration is needed.
|
||||
|
||||
This is a workaround for reader recovery, not an upstream fix. Remove the
|
||||
package to disable it:
|
||||
|
||||
```bash
|
||||
sudo dnf remove fingerprint-resume-recovery
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
[ "$1" = post ] || exit 0
|
||||
|
||||
# Finish before systemd thaws user sessions and the lock screen retries.
|
||||
exec /usr/bin/timeout 10s /usr/bin/systemctl try-restart fprintd.service
|
||||
@@ -0,0 +1,45 @@
|
||||
Name: fingerprint-resume-recovery
|
||||
Version: 0.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Restore fingerprint unlocking after sleep
|
||||
License: MIT
|
||||
URL: https://git.ajpanton.se/ajp_anton/fedora-tools
|
||||
Source0: fingerprint-resume-recovery
|
||||
Source1: LICENSE
|
||||
Source2: README.md
|
||||
BuildArch: noarch
|
||||
BuildRequires: bash
|
||||
Requires: coreutils
|
||||
Requires: fprintd
|
||||
Requires: systemd
|
||||
Requires: kscreenlocker >= 6.8
|
||||
Requires: plasma-desktop >= 6.8
|
||||
Provides: fedora-tools-tool
|
||||
|
||||
%description
|
||||
Restarts an active fingerprint service after resume, before the lock screen
|
||||
retries authentication. This works around fingerprint failures after sleeping
|
||||
with an active scan. Installing the package enables recovery; removing it
|
||||
restores the default behaviour. Fedora's KScreenLocker package is kept intact.
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
|
||||
%check
|
||||
sh -n %{SOURCE0}
|
||||
|
||||
%install
|
||||
install -Dpm 0755 %{SOURCE0} \
|
||||
%{buildroot}%{_prefix}/lib/systemd/system-sleep/fingerprint-resume-recovery
|
||||
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_licensedir}/%{name}/LICENSE
|
||||
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.md
|
||||
|
||||
%files
|
||||
%license %{_licensedir}/%{name}/LICENSE
|
||||
%doc %{_docdir}/%{name}/README.md
|
||||
%{_prefix}/lib/systemd/system-sleep/fingerprint-resume-recovery
|
||||
|
||||
%changelog
|
||||
* Sat Nov 14 2026 fedora-tools contributors - 0.1.0-1
|
||||
- Recover the fingerprint service before user sessions resume
|
||||
Reference in new issue
Block a user