Commit Graph
9 Commits
Author SHA1 Message Date
Bastian Mäuser 4e4bf28508 Document missing_after_secs default as fallback only
The code default stays 30 s for configs that omit the key, but 30 s
false-locks with the companion beacon (event gaps of 25-60 s are
routine). Docs now say explicitly that shipped configs must set 60+.
2026-11-06 15:12:18 +01:00
Bastian Mäuser 923d0fc485 Fix rust-lld path in the arm64 recipe: rustc 1.85 has no rustlib-dir print 2026-11-06 12:27:06 +01:00
Bastian Mäuser 38087583cf Document Debian installation via release and package registry
Option A adds the Gitea Debian registry as an apt source (updates land
with apt upgrade), option B installs a release .deb directly; both share
the same per-user setup steps.
2026-11-05 17:03:06 +01:00
Bastian Mäuser b93c0134dd Add Debian packaging and arm64 cross build
cargo-deb metadata produces a .deb with the binary, the packaged user
unit variant, man page and example config; arm64 cross-builds as a
static musl binary via an isolated rustup and rust-lld (recipe in
README). Add MIT LICENSE for the package copyright.
2026-11-05 16:34: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 c25ccde58e 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.
2026-11-05 14:57:48 +01:00
Bastian Mäuser 43a79d8a43 Fix false locks: escalate duty when updates stall, probe before locking
BlueZ dedupes identical RSSI values, so a stationary phone can go quiet
in the event stream while in range. At the 2% present duty cycle the
~1Hz beacon was caught less often than presence_timeout, causing
Present/Suspect flapping and locks after 60s of silence with the phone
at -60 dBm.

- Present: step up to the Suspect duty once the last sighting ages past
  half of presence_timeout, without leaving Present
- Lock path: attempt a 3s LE connect to the phone first; success cancels
  the lock and returns to Present, failure locks as before
2026-11-05 14:48:10 +01:00
Bastian Mäuser 426342eb10 Pin Version so all builds on Ubuntu 24.04 or newer 2026-11-05 14:38:49 +01:00
Bastian Mäuser 2dc85ba948 first commit 2026-11-05 14:15:31 +01:00