From fea2e9b221a2d18f9c73e5763adf662128cea5ec Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 20:29:52 +0100 Subject: feat(tablet): dim the backlight after an idle timeout After [tablet] dim_after seconds with no touch the page covers itself and the tablet module's dim action lowers the backlight to dim_brightness over adb, with auto brightness off meanwhile; an LCD's backlight is the drain, so a dark page alone saves little. The touch on the cover only calls undim, which restores both settings, as does the module's stop. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 1203edb..00628aa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -79,7 +79,11 @@ Keep the server dependency-free apart from that one package. serves at `/fonts/nerd.ttf`; Markdown goes through `static/md.js` (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. + over the dashboard. After `[tablet] dim_after` seconds untouched, `app.js` + covers the page with `#dimmer` and `tablet`'s `dim` action sets the + backlight to `dim_brightness` over adb (auto brightness off meanwhile); the + touch on the cover calls `undim`, which puts both back, as does the + module's `stop`. 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` -- cgit v1.2.3