From 8ba4e93dbfc4f0499f8a34beadeffb638d3e7e48 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 10:13:19 +0100 Subject: feat(sleep): run deck-it stop on a confirmed shutdown After the tablet has been told, a PrepareForShutdown runs `deck-it stop` in its own session (it kills the server) so the tunnels, wayvnc and the headless output go cleanly before the inhibitor lets the shutdown on. Login brings everything back on the next boot. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index dd0447a..1203edb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -83,7 +83,8 @@ Keep the server dependency-free apart from that one package. Before a suspend, poweroff or reboot `deckit/sleep.py` (an elogind delay inhibitor plus `dbus-monitor` on PrepareForSleep/PrepareForShutdown) marks answers with `X-Deckit-Sleep: asleep|shutting down` for 2s, and `app.js` - covers the page with "The PC is " and drops the lock, so the tablet sleeps too; 15s with no answer at all gives the same + covers the page with "The PC is " and drops the lock (a shutdown then + runs `deck-it stop`; login starts it again), so the tablet sleeps too; 15s with no answer at all gives the same overlay as "The PC is not answering". The first plain answer takes both back. - The Windows tab's previews are `grim -T ` (Hyprland's stableId is the ext-foreign-toplevel identifier), served at `/api/windows/image/` -- cgit v1.2.3