aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-11 10:13:19 +0100
committerDanilo M. <danix@danix.xyz>2026-11-11 10:13:19 +0100
commit8ba4e93dbfc4f0499f8a34beadeffb638d3e7e48 (patch)
tree85bed0dd8c196d62313dd61720c6234f843e4309 /AGENTS.md
parented5ff682efbefd3e90d21ea618473af2844b774d (diff)
downloaddeck-it-8ba4e93dbfc4f0499f8a34beadeffb638d3e7e48.tar.gz
deck-it-8ba4e93dbfc4f0499f8a34beadeffb638d3e7e48.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md3
1 files changed, 2 insertions, 1 deletions
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 <that>" 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 <that>" 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 <stableId>` (Hyprland's stableId is
the ext-foreign-toplevel identifier), served at `/api/windows/image/<id>`