You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Active development happens in the worktree at `/home/coder/trmnl-nook-sleep` on branch `feature/tap-menu-sleep`. The main checkout is at `/home/coder/trmnl-nook-simple-touch`.
88
+
89
+
> **CRITICAL for agents:** The devcontainer mounts `/home/coder/trmnl-nook-sleep` as `/workspace`.
90
+
> All source edits MUST be made to files under `/home/coder/trmnl-nook-sleep/` (the worktree).
91
+
> Editing `/home/coder/trmnl-nook-simple-touch/` (the main checkout) has NO effect on builds.
All notable changes to this project will be documented in this file.
4
+
5
+
## [v0.12.0] - 2026-03-29
6
+
7
+
### Fixed
8
+
-**Aggressive sleep now reliably fires after every scheduled refresh.** Previously the super-sleep check used `fetchReason` and flag state that could be clobbered by `onResume()`, meaning the device often stayed awake after displaying a new image. Simplified to: if Aggressive Sleep is enabled and the fetch was not triggered by the user (menu tap), call `sleepNow()` immediately after the image renders — no flags, no race conditions.
9
+
-`sleepPending` is now correctly cleared in `onResume()` and the screen timeout is always restored to 120 s on wake, regardless of sleep path.
10
+
11
+
### Notes
12
+
- All source edits must target the worktree at `/home/coder/trmnl-nook-sleep/` — see AGENTS.md.
13
+
14
+
---
15
+
16
+
## [v0.11.0] - 2026-03-28
17
+
18
+
### Added
19
+
-**Aggressive Sleep** (`Settings → General → Aggressive sleep`): puts the device to sleep immediately after each scheduled image refresh rather than waiting for the screensaver timeout. Battery savings vs. standard deep sleep are TBD.
20
+
-**Sleep button** (`Settings → System → Sleep`): manually triggers an immediate sleep from the settings screen.
21
+
-`android.permission.WRITE_SETTINGS` permission — used to set `SCREEN_OFF_TIMEOUT = 1000 ms` to trigger Android's natural screen-off path (no root required). Restored to 120 s on wake.
22
+
-`AGENTS.md`: documents the build environment, all failed sleep approaches, and the working `WRITE_SETTINGS` trick.
23
+
24
+
### Changed
25
+
- Screensaver/sleep-ready delay reduced from 5 s to 2 s.
26
+
- Deep sleep hint always visible when "Sleep between updates" is enabled.
27
+
- README: added Aggressive Sleep section and listed it in Features.
0 commit comments