aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 13:03:07 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 13:03:07 +0100
commit8ec2352c22780202fcd39982f1c3e65d2dae0cc1 (patch)
treebe44dfe4b18fe58c6b3b998be5c7c0cdcff46648 /AGENTS.md
parent7a9d73a2021d0d14be556531adee83531aaa6c15 (diff)
downloaddeck-it-8ec2352c22780202fcd39982f1c3e65d2dae0cc1.tar.gz
deck-it-8ec2352c22780202fcd39982f1c3e65d2dae0cc1.zip
feat: "The PC is asleep" overlay, and the tablet may sleep too
A sleeping PC answers no poll, and the wake lock kept the tablet's screen on over a frozen dashboard all night. After 15 s without any answer the page shows an overlay and releases the lock; the first answer hides it and takes the lock again. Checked on the tablet by stopping the server for 21 s: no screen wake lock while stopped, Chrome's taken again 5 s after it resumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 455eef6..83beff5 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -64,6 +64,9 @@ 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.
+ After 15s with no answer from the server (the PC asleep, or deck-it
+ gone) `app.js` covers the page with a "The PC is asleep" overlay and
+ drops the lock, so the tablet sleeps too; the first answer takes both back.
- Launchers are `[launch] apps`, desktop ids run with `gtk-launch`; label and
icon come from the `.desktop` file. The client sends the id, which must be
configured and installed.