Commit Graph
5 Commits
Author SHA1 Message Date
Bastian Mäuser dcf403200a Fix probe reliability and restore sane missing_after
Two false locks with the phone present: missing_after=30 sat below the
realistic worst-case event gap (beacon counter rotation every 10s times
2-20% duty sampling, with frozen-RSSI dedupe collapsing catches inside
one window), and the connect probe ran while our own discovery
duty-cycling was active, where attempts stall or abort with
le-connection-abort-by-local.

Probe now stops discovery first and retries (2x6s); sample config and
handoff document the sampling math. Local config additionally raises
rssi_lock to -85, where nearby-phone readings were pinning.
2026-11-06 12:17:47 +01:00
Bastian Mäuser b4e51a58f6 Explain locks with a desktop notification after unlock
After locking, wait for the session to come back (logind Unlock,
ScreenSaver ActiveChanged, or a new session after re-login) and post a
notification saying the phone left Bluetooth range and how long ago.
On by default, off with unlock_notice = false. Hidden test-notice
subcommand exercises the path without a real lock.
2026-11-05 16:17:19 +01:00
Bastian Mäuser 44f3d94d4b Tighten sample timeouts now that the companion app ships
With the beacon app advertising reliably from a foreground service and
rotating its payload, the pause-tolerant 120s missing_after is no longer
needed: 30s/15s restores a ~40s lock after leaving while the 10s connect
probe keeps guarding against silent stretches. Third-party beacon apps
still warrant 120s; the comments now say which tier applies.
2026-11-05 15:19:16 +01:00
Bastian Mäuser a5b798dceb Recommend patient timeouts in the sample config
Beacon apps pause advertising while the phone sits still, so the 30s
default for missing_after_secs false-locked. Ship 120s plus comments
explaining the beacon pauses and the 10s pre-lock connect probe;
presence_timeout_secs 30 pairs with the duty escalation.
2026-11-05 14:58:45 +01:00
Bastian Mäuser 57a8357dd7 first commit 2026-11-05 14:17:51 +01:00