aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-11 10:10:53 +0100
committerDanilo M. <danix@danix.xyz>2026-11-11 10:10:53 +0100
commited5ff682efbefd3e90d21ea618473af2844b774d (patch)
tree9a25fca9e3aac26792c8eee40f33bf6b843d9cdb /AGENTS.md
parent6a9a1ae47e758afb9a747a619b5665cb5908834a (diff)
downloaddeck-it-ed5ff682efbefd3e90d21ea618473af2844b774d.tar.gz
deck-it-ed5ff682efbefd3e90d21ea618473af2844b774d.zip
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 <reason>", dropping the wake lock as on suspend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md8
1 files changed, 4 insertions, 4 deletions
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 <that>" 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 <stableId>` (Hyprland's stableId is
the ext-foreign-toplevel identifier), served at `/api/windows/image/<id>`