aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-11 20:29:52 +0100
committerDanilo M. <danix@danix.xyz>2026-11-11 20:29:52 +0100
commitfea2e9b221a2d18f9c73e5763adf662128cea5ec (patch)
tree018ac7111d3dce1e4768c7a702d4394baf5589e1 /AGENTS.md
parentc6f23856f080feee37c4972fb6689332b9873574 (diff)
downloaddeck-it-fea2e9b221a2d18f9c73e5763adf662128cea5ec.tar.gz
deck-it-fea2e9b221a2d18f9c73e5763adf662128cea5ec.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md6
1 files changed, 5 insertions, 1 deletions
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`