From ed5ff682efbefd3e90d21ea618473af2844b774d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 10:10:53 +0100 Subject: feat(sleep): tell the tablet when the PC shuts down or reboots The delay inhibitor now covers shutdown too, and dbus-monitor also watches PrepareForShutdown. X-Deckit-Sleep carries the reason ("asleep" or "shutting down") and the page shows "The PC is ", dropping the wake lock as on suspend. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 0998ff4..dd0447a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -80,10 +80,10 @@ Keep the server dependency-free apart from that one package. (vendored `marked`, HTML escaped, images never fetched). - The page holds a Screen Wake Lock while visible, so the tablet never sleeps over the dashboard; nothing on the tablet's settings is changed. - Before a suspend `deckit/sleep.py` (an elogind delay inhibitor plus - `dbus-monitor` on PrepareForSleep) marks answers with `X-Deckit-Sleep` for - 2s, and `app.js` covers the page with "The PC is asleep" and drops the - lock, so the tablet sleeps too; 15s with no answer at all gives the same + 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 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