Probe for 10s and log its outcome before locking

The phone's beacon app pauses advertising for stretches while in range,
which is what the 3s probe could not bridge. Give the controller a 10s
window to find the phone, and log probe outcomes at INFO/WARN so the
journal explains every lock decision.
This commit is contained in:
Bastian Mäuser committed 2026-11-05 14:57:48 +01:00
1 parent 43a79d8a43
commit c25ccde58e
2 files changed
+12 -8

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ The daemon adapts it to a small state machine:
Locking goes through `loginctl lock-session` (works with GNOME, KDE, Sway,
...), configurable via `lock_command`. Before locking, the daemon attempts a
short (3s) LE connection to the paired phone: a phone in range accepts it,
short (10s) LE connection to the paired phone: a phone in range accepts it,
which cancels the lock — silence in the advertisement stream alone is not
proof of absence.
@@ -122,7 +122,7 @@ See `config.toml.example`; every knob is documented there. Highlights:
identical RSSI values (its property cache suppresses unchanged values), so
a stationary phone can go quiet in the event stream while in range. Two
countermeasures: the radio escalates duty while updates are stalled (see
Present above), and the lock decision is gated on a 3s LE connect probe.
Present above), and the lock decision is gated on a 10s LE connect probe.
`--dry-run` on your hardware remains the arbiter. The AdvertisementMonitor
roadmap removes this class of problem.
- While the screen is locked the daemon keeps low-duty scanning to notice