Skip to content

Blank the lock screen while the fingerprint reader waits - #6817

Merged
dhh merged 1 commit into
omacom:quattrofrom
e2escobar:fix-lock-blank-with-fingerprint
Aug 13, 2026
Merged

dhh merged 1 commit into
omacom:quattrofrom
e2escobar:fix-lock-blank-with-fingerprint

Conversation

@e2escobar

Copy link
Copy Markdown
Contributor

Problem

With a fingerprint enrolled, the lock screen never turns the display off. The panel stays lit for as long as the machine is locked.

idleBlankTimer is gated on authenticating:

readonly property bool authenticating: authenticatingPassword || fingerprintAuthenticating

onAuthenticatingChanged: {
  if (!lockRequested) return
  if (authenticating) idleBlankTimer.stop()
  else armBlankTimer()
}

The gate is meant to keep the display up while a password is being checked. But startFingerprint() runs as soon as the session lock goes secure and the fingerprint PAM then sits armed for the whole lock waiting for a finger, so fingerprintAuthenticating — and therefore authenticating — is true from lock until unlock. The timer armed by beginLock() is stopped immediately and never re-armed, and runBlank() never runs.

Measured on a locked session (idle, no input) before the fix:

11:42:46 dpms=true {"locked":true,"secure":true,"authenticating":true}
...
11:43:13 dpms=true {"locked":true,"secure":true,"authenticating":true}

authenticating stays true and DPMS never goes down. Machines without a reader are unaffected, which is why this isn't universally visible.

Fix

Gate the blank on authenticatingPassword instead of the combined state. A password check in flight still holds the display up; the passive fingerprint wait no longer does. Fingerprint unlock is untouched — the reader stays armed while the panel is off, and runWake() on lock-screen input still re-arms the blank on its normal 5s run-up.

After, same measurement:

11:54:57 dpms=true  {"locked":true,"secure":true,"authenticating":true}
11:54:59 dpms=false {"locked":true,"secure":true,"authenticating":true}
11:55:11 dpms=false {"locked":true,"secure":true,"authenticating":true}

The blank fires at +5s as intended and the display stays off until input wakes it.

Verification

  • Verified in the running UI on Omarchy 3.1.2 / Hyprland 0.56.2, laptop with an enrolled fingerprint reader (eDP-1): four lock cycles sampling hyprctl monitors and omarchy-shell lock status. Both password and fingerprint unlock still work, and touching the trackpad while blanked wakes the panel and re-arms the timer.
  • Added test/shell.d/lock-blank-fingerprint-test.sh, which fails on the current gate and passes with this change.
  • ./test/all — the only failures are the three omarchy-pkgs checkout tests (config, snapper, unowned-system-paths), which fail identically on a clean tree here because that sibling checkout isn't present.

The blank timer was gated on `authenticating`, which is
`authenticatingPassword || fingerprintAuthenticating`. The fingerprint
PAM sits armed for the entire lock waiting for a finger, so on any
machine with a reader enrolled the gate is true from lock until unlock:
the timer is stopped when the lock begins and never re-armed, and the
display stays lit indefinitely.

Gate on `authenticatingPassword` instead. A password check in flight
still holds the display up, and the passive fingerprint wait no longer
does.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EDpyC9793TKZBS2jXUNECG
Copilot AI balanced review requested due to automatic review settings August 13, 2026 17:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes lock-screen display blanking when fingerprint authentication remains armed.

Changes:

  • Gates blanking only on active password authentication.
  • Adds regression coverage for fingerprint-enabled locks.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shell/plugins/lock/Service.qml Allows blanking during passive fingerprint authentication.
test/shell.d/lock-blank-fingerprint-test.sh Verifies password-only blanking gates.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dhh
dhh merged commit f73740f into omacom:quattro Aug 13, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
The blank timer was gated on `authenticating`, which is
`authenticatingPassword || fingerprintAuthenticating`. The fingerprint
PAM sits armed for the entire lock waiting for a finger, so on any
machine with a reader enrolled the gate is true from lock until unlock:
the timer is stopped when the lock begins and never re-armed, and the
display stays lit indefinitely.

Gate on `authenticatingPassword` instead. A password check in flight
still holds the display up, and the passive fingerprint wait no longer
does.


Claude-Session: https://claude.ai/code/session_01EDpyC9793TKZBS2jXUNECG

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants