diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-11 10:10:53 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-11 10:10:53 +0100 |
| commit | ed5ff682efbefd3e90d21ea618473af2844b774d (patch) | |
| tree | 9a25fca9e3aac26792c8eee40f33bf6b843d9cdb /AGENTS.md | |
| parent | 6a9a1ae47e758afb9a747a619b5665cb5908834a (diff) | |
| download | deck-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.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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>` |
