From 8ec2352c22780202fcd39982f1c3e65d2dae0cc1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 13:03:07 +0100 Subject: 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 --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'AGENTS.md') 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. -- cgit v1.2.3