Configurable screen blank (default 5 min), instant lock/lid blank, instant call/SMS wake
- Config -> Screen blank submenu (Off / 30 s / 1 / 5 / 10 / 30 min) backed by ~/.config/sxmo/idle_blank_timeout and the new bananarchy-idle-timeout.sh get|label|set. Default changed from 60 s to 300 s. dwm reads the file live and reloads it on SIGUSR1, so a menu change takes effect without a restart; sxmo.noidle and SXMO_UNLOCK_IDLE_TIME still override/disable it. - Power -> Lock now uses @plugin:locker:screenoff (like Lock (Screen off)), and lock_phone_screenoff() resets dwm's idle state, so closing the slider/lid or locking blanks the panel immediately instead of waiting for the timeout. - New bananarchy-screen-wake.sh restores the panel via sxmo_wm.sh display on, records /tmp/bananarchy_last_wake and signals dwm (SIGUSR1) to reset idle_blanked / last_input_ms. Called from sxmo_hook_ring.sh (incoming call) and sxmo_hook_notification.sh (SMS / notifications). dwm also self-heals if an external hook turns the panel on without a signal. Verified live on the connected phone (after deploying the rebuilt dwm/dmenu and restarting dwm with a rollback backup): idle_locker job is gone, default reads 300 / 5m, setting 10 s blanks the panel (br 14->0, bl 0->4, DPMS On->Off) after ~14 s of no input, and bananarchy-screen-wake.sh restores it immediately. Lock state and 5-minute default were restored afterwards. All scripts pass sh -n. Rebuilt dwm/dmenu and images/bananarchy-nokia-argon.img with --mkinitfs; boot.img still contains the known-good zImage + DTB byte-for-byte. check-rebuild.sh passes and artifact drift is 0. Docs: MANUAL.md, CHANGELOG.md, AGENTS.md, BATTERY-OPTIMIZATION-ANALYSIS.md (13).
This commit is contained in:
1 parent
22d629f59b
commit
da68bb8c60
14 files changed
+226
-12
No files matched your search
@@ -62,7 +62,7 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7`
|
||||
- **Documentation**: keep `README.md`, `MANUAL.md`, `SDK.md`, and `CHANGELOG.md` synchronized with any new user-facing features, SDK functions, or keybindings, and do not leave third-party `.md` files inside `src/` or `edl/`.
|
||||
- **Artifact sources**: `prebuilt/` is the single source of truth for compiled artifacts and `scripts/rootfs-packages.txt` for the `armv7` package set. Never edit `overlay/rootfs/` copies of binaries by hand; run `./scripts/sync-prebuilt-overlay.sh` after changing `prebuilt/`.
|
||||
- **Package hygiene**: keep `scripts/rootfs-packages.txt` free of Rust-based top-level packages (use C `sudo`, never `sudo-rs`) and Wayland-purpose packages; `libwpe` and the `wayland-libs-*` shared libraries stay because GTK3/WebKitGTK link them directly, but no Wayland compositor, backend, or viewer is shipped. `scripts/check-rebuild.sh` enforces this.
|
||||
- **Power management**: idle blanking is `bananarchy-idle-blank.sh` + `sxmo_hook_unlock.sh`'s `idle_locker` (`SXMO_UNLOCK_IDLE_TIME`, default 60 s; `~/.cache/sxmo/sxmo.noidle` opts out). Deep standby is `bananarchy-suspend.sh` / `bananarchy-deep-standby.sh` / `sxmo_autosuspend.sh` / `sxmo_suspend.sh`, gated by `/etc/bananarchy-no-deep-standby` (shipped present = disabled) and inert until a full custom kernel module tree is shipped. Never force `sxmo.noidle`/`sxmo.nosuspend` from the session scripts and never reintroduce the infinite `sxmo_not_suspendable` wakelock. `/etc/bananarchy/` is root-only.
|
||||
- **Power management**: idle blanking is `dwm`'s native evdev timer (`src/sxmo-dwm/dwm.c`) plus `bananarchy-idle-blank.sh`; the timeout lives in `~/.config/sxmo/idle_blank_timeout` (default 300 s, `0` = off), is edited via **Config -> Screen blank** / `bananarchy-idle-timeout.sh`, and is reloaded on `SIGUSR1`. `~/.cache/sxmo/sxmo.noidle` and `SXMO_UNLOCK_IDLE_TIME` still override it. `bananarchy-screen-wake.sh` (called from the ring and notification hooks) wakes the panel for calls/SMS and resets the timer; locking or closing the lid blanks immediately. Deep standby is `bananarchy-suspend.sh` / `bananarchy-deep-standby.sh` / `sxmo_autosuspend.sh` / `sxmo_suspend.sh`, gated by `/etc/bananarchy-no-deep-standby` (shipped present = disabled) and inert until a full custom kernel module tree is shipped. Never force `sxmo.noidle`/`sxmo.nosuspend` from the session scripts and never reintroduce the infinite `sxmo_not_suspendable` wakelock. `/etc/bananarchy/` is root-only.
|
||||
- **Image residue**: `rebuild-image.sh` strips `/var/cache/apk`, all `apk.log*` files, and unused gettext locale trees before `mke2fs` and aborts the build if any apk cache/log remains; never add an `apk` call after that guard.
|
||||
- **No on-device compiler**: `scripts/rootfs-packages.txt` ships no `gcc`/`g++`/`musl-dev`/`make` and no Janet runtime (`janet`, `janet-dev`, `jpm`); cross-compile native code with `scripts/build-*.sh`. On-device development uses the Yabasic FFI SDK (`neoui.yab` / `neonet.yab`), which requires `yabasic`, `libffi`, `libneoui.so`, and `libcurl.so.4` — never remove those. `scripts/check-rebuild.sh` guards both sides.
|
||||
- **Core tools**: `curl`, `bc`, `ed`, `rlwrap`, `mandoc`, `nano`, `less`, and `frotz` are pinned core tools asserted by `scripts/check-rebuild.sh`. Perl, Lua, optional Tcl extensions, and the `sqlite` CLI are excluded, while `tcl`, `python3`, `bash`, `luajit`, `gawk`, `jq`, `gojq`, and `quickjs` remain as hard runtime dependencies.
|
||||
|
||||
Reference in new issue
Block a user