Tune fingerprint feedback defaults
This commit is contained in:
@@ -10,9 +10,13 @@ in GNOME/GDM on Fedora systems managed by `authselect`.
|
||||
|
||||
## Quick start
|
||||
```bash
|
||||
sudo ./tools/gnome_fprint_feedback_setup.sh --max-tries 2 --timeout 6
|
||||
sudo ./tools/gnome_fprint_feedback_setup.sh
|
||||
```
|
||||
|
||||
The default tuning uses `max-tries=3 timeout=20`, which keeps fingerprint
|
||||
unlock available long enough after lockout or suspend while still providing
|
||||
clear failure feedback.
|
||||
|
||||
## Rollback
|
||||
```bash
|
||||
sudo ./tools/gnome_fprint_feedback_rollback.sh
|
||||
|
||||
@@ -19,7 +19,7 @@ sudo ./tools/gnome_fprint_feedback_setup.sh
|
||||
Custom tuning:
|
||||
|
||||
```bash
|
||||
sudo ./tools/gnome_fprint_feedback_setup.sh --max-tries 2 --timeout 6
|
||||
sudo ./tools/gnome_fprint_feedback_setup.sh --max-tries 3 --timeout 20
|
||||
```
|
||||
|
||||
## Validate
|
||||
@@ -34,7 +34,7 @@ grep pam_fprintd /etc/pam.d/fingerprint-auth
|
||||
Expected effective line:
|
||||
|
||||
```text
|
||||
pam_fprintd.so max-tries=2 timeout=6
|
||||
pam_fprintd.so max-tries=3 timeout=20
|
||||
```
|
||||
|
||||
## Rollback
|
||||
@@ -54,6 +54,8 @@ sudo ./tools/gnome_fprint_feedback_rollback.sh --remove-profile
|
||||
|
||||
## Notes
|
||||
- Scripts must be run as root.
|
||||
- The defaults are intentionally long enough for GNOME unlock after suspend;
|
||||
too-short timeouts can make fingerprint unlock appear unavailable.
|
||||
- Setup stores previous `authselect current --raw` in:
|
||||
- `/etc/authselect/custom/local-fprint-feedback/.previous-authselect-raw`
|
||||
- If no saved state exists, rollback falls back to:
|
||||
|
||||
8
tools/gnome_fprint_feedback_setup.sh
Normal file → Executable file
8
tools/gnome_fprint_feedback_setup.sh
Normal file → Executable file
@@ -13,15 +13,15 @@ Applies an authselect custom profile that sets pam_fprintd parameters
|
||||
for faster visible fingerprint failure feedback in GDM/GNOME unlock.
|
||||
|
||||
Options:
|
||||
--max-tries N Fingerprint tries before failure (default: 2)
|
||||
--timeout SEC Fingerprint timeout in seconds (default: 6)
|
||||
--max-tries N Fingerprint tries before failure (default: 3)
|
||||
--timeout SEC Fingerprint timeout in seconds (default: 20)
|
||||
--profile NAME Custom authselect profile name (default: local-fprint-feedback)
|
||||
-h, --help Show this help
|
||||
USAGE
|
||||
}
|
||||
|
||||
MAX_TRIES=2
|
||||
TIMEOUT=6
|
||||
MAX_TRIES=3
|
||||
TIMEOUT=20
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user