feat(lockscreen,polkit): face authentication via Gaze#3532
Draft
bennypowers wants to merge 1 commit into
Draft
Conversation
Author
|
Currently, when the lockscreen comes up, a gaze session starts immediately, runs the CPU until timeout, then cancels, and subsequently falls back to password authentication. Not ideal. I'd like to get some feedback on this for a better workflow. |
bennypowers
marked this pull request as draft
July 20, 2026 15:44
Add face unlock support using GunduLabs/gaze facial authentication daemon. FaceAuthenticator talks to com.gundulabs.Gaze on the system D-Bus, mirroring the existing FingerprintAuthenticator pattern. Lockscreen: face auth runs concurrently with fingerprint and password. Pre-checks enrolled faces and camera availability, claims a Gaze session, subscribes to FaceStatus/VerifyStatus signals, retries up to 3 times on no-match, and handles sleep/wake with deferred proxy reclaim for stale claims. Polkit: auto-responds to GAZE_CONFIRMATION_REQUEST prompts from pam_gaze.so with CONFIRM, enabling seamless face auth through the polkit PAM stack. Closes noctalia-dev#3000 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bennypowers
force-pushed
the
feat/gaze-face-auth
branch
from
July 22, 2026 06:56
7598a50 to
47179cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
com.gundulabs.Gaze)GAZE_CONFIRMATION_REQUESTfrompam_gaze.so, enabling face auth through the polkit PAM stackface-authconfig toggle and settings UI entry under Security > Lock ScreenDetails
FaceAuthenticatormirrors the existingFingerprintAuthenticatorpattern:HasEnrolledFacesandIsCameraAvailablebefore claimingClaim/Releasesession lifecycle withVerifyStart/VerifyStopFaceStatus(capture quality feedback) andVerifyStatus(match result) signalsverify-no-matchwith 500ms delayPrepareForSleepwith deferred proxy reclaim for stale claimsWhen Gaze is not installed or no face is enrolled, face auth silently bails with no errors.
For polkit, when
pam_gaze.sois in the polkit PAM stack and sends aGAZE_CONFIRMATION_REQUESTprompt on successful face match, noctalia auto-responds withCONFIRM.Test plan
pam_gaze.soin/etc/pam.d/polkit-1Closes #3000