From ea5a277c6b8bb2ba48b0ca8822797cf6ab0b3405 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 13:06:18 +0100 Subject: feat: the PC tells the tablet it is going to sleep deckit/sleep.py holds an elogind delay inhibitor and watches PrepareForSleep with dbus-monitor. On a suspend the server marks its answers with X-Deckit-Sleep for 2 s, so the tablet's next poll shows "The PC is asleep" at once and drops its wake lock, then lets the inhibitor go. On resume it takes the inhibitor again. The 15 s silence fallback stays, worded "The PC is not answering", for a crash or a dropped tunnel. The inhibitor's command is `tail --pid=` and dbus-monitor has a parent-death signal, so a killed server leaves no lock delaying every suspend (checked with kill -9: both gone within 2 s). Co-Authored-By: Claude Opus 5.5 --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/index.html') diff --git a/static/index.html b/static/index.html index d199a35..ca3e827 100644 --- a/static/index.html +++ b/static/index.html @@ -42,8 +42,8 @@
-- cgit v1.2.3