From 2857ef4374d3575ac2e5b10e3a45ca06f89bd8fc Mon Sep 17 00:00:00 2001 From: Luxferre Date: Tue, 10 Nov 2026 20:23:06 +0200 Subject: [PATCH] Make 2720 Flip lid switching instant and route closed-flip events to the cover The lid daemon re-derived "observed" from a stale EV_SW mask on every 100 ms iteration and only read the raw hall lines every 200 ms, so the candidate oscillated and the 80 ms debounce almost never completed. A controlled hall transition on the live phone took over 2.2 s to blank and lock the main panel. The hall reading is now sticky, every EV_SW edge forces an immediate hall re-read, the loop and debounce are 20 ms, and the daemon writes the lid state, lock flag, Sxmo state and both backlights synchronously in C before spawning hooks. A direct xset DPMS off/on stops or resumes Xorg's SPI flushes at once. bananarchy-lid-state.sh guards the asynchronous hooks by lid state and a transition generation counter, so a late screenoff cannot re-lock a flip that was just opened. bananarchy-lid-gate.sh now gates sxmo_wm.sh display on, the screen-wake helper, the backlight udev helper, sxmo_state.sh set unlock (dwm calls it directly) and both input handler copies. While the flip is closed it blocks the main panel and keypad backlight, forces brightness/kbd/DPMS off against stray writes, and forwards a WAKE datagram to the cover display. Ring, notification and call-state hooks publish to the cover, and the cover daemon gained WAKE, event wakes, immunity to repeated LID CLOSED rebroadcasts and a bounded retry for a DPMS-deferred draw. Live verification with controlled hall transitions and uinput switch/key injection: close blanks and locks in ~45-90 ms (hall-poll fallback ~100-220 ms), open restores brightness, keypad backlight, unlock and DPMS in ~10-130 ms with no stale-hook re-lock. All three external keys and an incoming call leave brightness=0, kbd_backlight=0 and DPMS=Off while the cover reports backend=spidev visible=1; opening returns mux=open. Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash 0f33aa6e9fc70022574b453aaafb9307c4d185431d3be272782c8403dd0fb291 in check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms twelve updated rootfs files byte-for-byte, and the bootfs sync, boot image check, artifact sync, host tests and rebuild preflight all pass. This is an intermediate checkpoint: eyes-on cover illumination and the remaining polarity/CS fixes are still required. --- AGENTS.md | 4 + CHANGELOG.md | 10 +- MANUAL.md | 2 +- README.md | 2 +- .../sxmo/hooks/sxmo_hook_inputhandler.sh | 7 + .../rootfs/usr/bin/bananarchy-cover-event.sh | 6 +- overlay/rootfs/usr/bin/bananarchy-cover-idle | Bin 17580 -> 21676 bytes .../usr/bin/bananarchy-display-power-sync | 10 + overlay/rootfs/usr/bin/bananarchy-lid | Bin 13536 -> 13536 bytes overlay/rootfs/usr/bin/bananarchy-lid-gate.sh | 25 +++ .../rootfs/usr/bin/bananarchy-lid-state.sh | 19 ++ .../rootfs/usr/bin/bananarchy-screen-wake.sh | 5 + overlay/rootfs/usr/bin/sxmo_state.sh | 6 + overlay/rootfs/usr/bin/sxmo_wm.sh | 5 + .../sxmo/default_hooks/sxmo_hook_hangup.sh | 3 + .../default_hooks/sxmo_hook_inputhandler.sh | 7 + .../default_hooks/sxmo_hook_missed_call.sh | 3 + .../default_hooks/sxmo_hook_notification.sh | 2 + .../sxmo/default_hooks/sxmo_hook_pickup.sh | 3 + .../sxmo/default_hooks/sxmo_hook_ring.sh | 2 + .../usr/bin/bananarchy-cover-event.sh | 6 +- .../usr/bin/bananarchy-cover-idle | Bin 17580 -> 21676 bytes .../bananarchy-daemons/usr/bin/bananarchy-lid | Bin 13536 -> 13536 bytes scripts/check-rebuild.sh | 64 ++++++- scripts/test-cover-spidev.py | 40 ++++ scripts/test-idle-blank-lock.py | 1 + scripts/test-lid-gate.py | 156 ++++++++++++++++ .../bananarchy-cover-idle.c | 52 +++++- src/bananarchy-daemons/bananarchy-lid.c | 176 +++++++++++++++--- 29 files changed, 567 insertions(+), 49 deletions(-) create mode 100755 overlay/rootfs/usr/bin/bananarchy-lid-gate.sh create mode 100755 overlay/rootfs/usr/bin/bananarchy-lid-state.sh create mode 100755 scripts/test-lid-gate.py diff --git a/AGENTS.md b/AGENTS.md index be2f0d8..b2abaa5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -78,6 +78,10 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, ` - Keep the internal beatles panel at 25 MHz, `dc_gpio = -1` for the spidev fallback, external-panel firmware and initramfs module lists, the Xorg `card0` pin, `bananarchy-cover-diagnose.sh`, and the `scripts/test-cover-dt.py` / `scripts/test-cover-spidev.py` guards. +- Keep the 2720 Flip lid handling event-driven and instant: sticky hall state, immediate hall re-read on `EV_SW` + edges, 20 ms debounce, and synchronous lid-state/lock/backlight/DPMS writes in `bananarchy-lid.c`. Every main-panel + wake path must call `bananarchy-lid-gate.sh`; a closed flip may only light the cover. `sxmo_state.sh set unlock` is + gated too because `dwm` calls it directly. Guard `scripts/test-lid-gate.py`. - Build the lk2nd display image from pinned `bootloader/lk2nd/nokia-beatles.patch`. Exact stock IDs, 512 MiB memory fallback, appended DTB, `quiet splash`, and the low-bit reboot cookie matter. `check-lk2nd-beatles.py`, `test-lk2nd-beatles-port.py`, `check-beatles-bootimg.py`, `sync-beatles-bootfs.py --check`, and `check-rebuild.sh` diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c12b8e..4d02124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,14 @@ Release versions follow the `
` format (where `2026` is `a`, Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here. +### Instant flip lid switching and closed-flip event routing + +- **Root cause of the close lag**: `bananarchy-lid.c` recomputed `observed` from a stale `EV_SW` mask on every 100 ms iteration and only consulted the raw hall lines every 200 ms, so `candidate` oscillated open/closed and the 80 ms debounce rarely completed. With a controlled hall-file transition on the live phone a close took over 2.2 s to blank the main panel. The hall reading is now sticky, any `EV_SW` edge forces an immediate hall re-read, the loop/debounce are 20 ms, and the daemon writes the lid state, lock flag, Sxmo state and all backlights synchronously in C before spawning hooks. A direct `xset dpms force off/on` stops or resumes Xorg's SPI flushes immediately; the Sxmo hooks run through `bananarchy-lid-state.sh`, which refuses stale spawns by lid state and a transition generation counter so a late screenoff hook cannot re-lock a just-opened flip. +- **Closed flip is cover-only**: `bananarchy-lid-gate.sh` is called by `sxmo_wm.sh display on`, `bananarchy-screen-wake.sh`, `bananarchy-display-power-sync`, `sxmo_state.sh set unlock` and both `sxmo_hook_inputhandler.sh` copies. While `/run/bananarchy/lid-state` is `closed` it blocks the main panel and keypad backlight, hard-forces brightness/kbd/DPMS off against stray writes, and forwards a `WAKE` datagram to the cover display. Ring, notification, missed-call, pickup and hangup hooks also publish their state to the cover. The cover daemon gained `WAKE`, wakes on `CALL`/`NOTIFY`/`SMS`, ignores repeated `LID CLOSED` rebroadcasts instead of clearing a wake, and retries a DPMS-deferred draw for a bounded 3 s. +- **Live verification** (root SSH, controlled hall transitions plus `/dev/uinput` switch/key injection): close now blanks + locks in ~45-90 ms with an `EV_SW` edge (~100-220 ms on the hall-poll fallback) instead of >2.2 s; open restores brightness, keypad backlight, unlock and DPMS in ~10-130 ms (~240 ms for DPMS) with no stale-hook re-lock after 2.4 s. All three external keys (volume up/down and End/Power) and an incoming call/notification left `brightness=0`, `kbd_backlight=0`, `DPMS=Off`, `state=screenoff/lock`, while the cover reported `backend=spidev visible=1 mux=closed`; the wake survived the 2 s lid rebroadcast. Opening returned `mux=open`, `backend=idle`, main panel on. +- **Image persistence**: rebuilt `images/bananarchy-nokia-beatles.img` at `a1108` / `dejavu` with the instant lid handling; verified raw hash `0f33aa6e9fc70022574b453aaafb9307c4d185431d3be272782c8403dd0fb291`, pinned by `scripts/check-rebuild.sh`. `debugfs` confirms the image rootfs carries the rebuilt lid/cover daemons and all ten gated scripts byte-for-byte; `e2fsck -fn` passed on both partitions; bootfs sync, boot image check, artifact sync, host tests and rebuild preflight pass. The standalone boot image hash is unchanged. +- **Guards**: `scripts/test-lid-gate.py` compiles the lid daemon on the host, checks the event-driven structure and generation guard, verifies every wake path is gated, and exercises the gate script against stubbed lid states. `scripts/test-cover-spidev.py` covers `WAKE`, repeated `LID CLOSED`, the DPMS-On gate and the bounded pending retry. `scripts/check-rebuild.sh` guards the new scripts, tokens and host tests. + ### Closed-flip external panel on the shipping 2720 Flip image - **Problem**: both GC9305 panels share one BLSP1 QUP5 SPI bus through a gpio13 mux. The shipping image registers only the 240x320 internal panel, so `bananarchy-cover-idle` had no `/dev/fb1` and reported `backend=none`: the cover screen was never driven in the closed flip state. Registering both panels in the DT (`devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts`) does produce `/dev/fb1`, but an earlier live test darkened the main panel, so that layout is deliberately opt-in. @@ -20,7 +28,7 @@ Work since `a1108` has focused on reliable 2720 Flip hardware support and a repr - **Hardware measurements**: on the live `nokia-beatles` target over root SSH, `/sys/kernel/debug/gpio` showed gpio13 `out low` with the main panel active (low = internal, high = cover), gpio21/gpio23 free inputs, gpio25 (`reset`) and gpio110 (`dc`) claimed by `panel-mipi-dbi-spi`, and `l17`/`l6` panel rails enabled. gpio13 therefore stays an output-low mux select and the daemon never requests gpio110. Polarities were *not* confirmed with eyes on the cover panel, so they remain config keys and runtime `bananarchy-coverctl SET` knobs, with `SET backend none` as a one-command rollback. - **Live verification**: the rebuilt ARM daemon, config, service and diagnostics were deployed to the phone. With the flip open, `STATUS` reports `backend=idle spi=1 mux=free` and gpio13 stays low. After `LID CLOSED` + `BUTTON` (lid broadcaster stopped, main panel DPMS-off to emulate a closed flip), `STATUS` reports `backend=spidev visible=1 mux=closed`, gpio13 goes high, the daemon holds `/dev/gpiochip0`, two `gpio-linehandle` fds and `/dev/spidev0.1`, and every init/frame ioctl succeeds. `BLANK` sends display-off; `LID OPEN` restores gpio13 low and `mux=open`. Xorg, dwm, `card0-SPI-1 dpms=On` and backlight 14 were restored afterwards, the lid service was restarted, and stopping the cover service leaves gpio13 output-low. Physical illumination of the cover still needs eyes-on sign-off. - **Guards and docs**: `scripts/test-cover-spidev.py` compiles the daemon in SPI simulation mode and verifies the open-flip bus silence, the DPMS-On gate, mux-first ordering, firmware replay, RGB565 frame size, display-off on blank, handover on open, polarity knobs, `SET backend none` rollback and `/dev/fb1` precedence. `scripts/check-rebuild.sh` guards the new source/config tokens and both compiled ARM copies. `bananarchy-cover-diagnose.sh` reports the spidev node, TLMM lines and polarity config. README, MANUAL and `AGENTS.md` describe the closed-flip-only ownership; the shipping DTB stays single-panel and the two-panel DT stays opt-in. `prebuilt/bananarchy-daemons/usr/bin/bananarchy-cover-idle` and its overlay mirror were rebuilt with `scripts/build-bananarchy-daemons.sh`. -- **Image persistence**: rebuilt `images/bananarchy-nokia-beatles.img` at `a1108` / `dejavu` with the closed-flip external-panel backend; the verified raw hash is `ccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac`, pinned by `scripts/check-rebuild.sh`. `debugfs` confirms the image rootfs carries the rebuilt `bananarchy-cover-idle` and the new config, service and diagnostics byte-for-byte; `e2fsck -fn` passed on both `pmOS_boot` and `pmOS_root`; `sync-beatles-bootfs.py --check`, `check-beatles-bootimg.py`, artifact sync and `check-rebuild.sh` pass. The standalone `boot-bananarchy-nokia-beatles.img` hash is unchanged. Eyes-on confirmation that the cover panel lights up is still pending, so this is an intermediate build. +- **Image persistence**: rebuilt `images/bananarchy-nokia-beatles.img` at `a1108` / `dejavu` with the closed-flip external-panel backend; the verified raw hash at that point was `ccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac` (superseded by the instant-lid rebuild below). `debugfs` confirms the image rootfs carries the rebuilt `bananarchy-cover-idle` and the new config, service and diagnostics byte-for-byte; `e2fsck -fn` passed on both `pmOS_boot` and `pmOS_root`; `sync-beatles-bootfs.py --check`, `check-beatles-bootimg.py`, artifact sync and `check-rebuild.sh` pass. The standalone `boot-bananarchy-nokia-beatles.img` hash is unchanged. Eyes-on confirmation that the cover panel lights up is still pending, so this is an intermediate build. ### Power menu label diff --git a/MANUAL.md b/MANUAL.md index 4fb3090..9449275 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -455,7 +455,7 @@ Three native X11 games (`/usr/bin/snake`, `/usr/bin/tetris`, and `/usr/bin/scoun - **Wi-Fi and Bluetooth missing**: both radios depend on the shared WCNSS remote processor. `msm-firmware-loader` must start in sysinit before udev and mount the stock `modem` and `persist` partitions under `/run/msm-firmware-loader/mnt`; it then exposes `wcnss.mdt` and the factory `WCNSS_qcom_wlan_nv.bin` through the kernel firmware path. Check `rc-service msm-firmware-loader status`, `cat /sys/class/remoteproc/remoteproc1/state`, and `dmesg | grep -Ei 'wcnss|remoteproc|firmware'`. A `Direct firmware load for wcnss.mdt failed` message means the loader package or its sysinit link is missing, not that the Wi-Fi and Bluetooth drivers are absent. After a successful boot, `wlan0` and `hci0` enumerate automatically; Bluetooth userspace still starts on demand from the Networks/Bluetooth UI to save power. - **X startup and keypad**: OpenRC starts independent services in parallel; `etc/init.d/local` replaces its stock `after *` dependency, which deadlocked with parallel startup on this image. `udev_settle_timeout=2` stops missing modem firmware from holding the display manager behind a long `udevadm settle`, and `bananarchy-sshd-debug` starts independently of `local.d`. A boot-open flip reads `/run/bananarchy/lid-state` and starts in `state=unlock` with no passcode screen, so the keypad is live as soon as `dwm` starts. If the keypad is dead, check `rc-service bananarchy-lid status`, `cat /run/bananarchy/lid-state`, `sxmo_state.sh get`, `/tmp/bananarchy_screen_locked`, `DISPLAY=:0 xwininfo -id 0xa00001` and `DISPLAY=:0 xinput list`. - **Display distortion above 71% brightness**: the internal panel uses 25 MHz SPI on `nokia-beatles`, rather than the 50 MHz timing used by the other targets. This keeps the link stable when the MPP2 backlight PWM duty rises above the level-10/14 operating point. The brightness range remains 1–14 with no artificial cap, and panel offsets/init registers are unchanged. The timing can be checked with `dtc -I dtb -O dts /boot/qcom-msm8905-nokia-beatles.dtb | grep -A8 'display@0'`. -- **Closing the flip**: `bananarchy-lid` reads the current `EV_SW` switch mask from `/dev/input/event2`, follows hall edge events with an 80 ms stability window, and reconciles the raw gpio36/gpio92 debugfs levels every 200 ms even while evdev is present. This covers missed edges and stale `EVIOCGSW` state without a busy-polling loop. On close it blanks the main panel and keypad LED immediately, runs `sxmo_state.sh set screenoff` and tells the cover daemon `LID CLOSED`; on open it clears the lock flag, restores both backlights, sends a trusted `CLOSE` to `locker.so` and runs `sxmo_state.sh set unlock`. Check `rc-service bananarchy-lid status`, `sxmo_state.sh get` and `grep -E " gpio(36|92) " /sys/kernel/debug/gpio`. If the hall polarity is inverted on your unit, set `BANANARCHY_LID_GPIO_FILE` to a different debugfs GPIO file for the fallback path. +- **Closing the flip**: `bananarchy-lid` reads the current `EV_SW` switch mask from `/dev/input/event2`, follows hall edge events with an 80 ms stability window, and reconciles the raw gpio36/gpio92 debugfs levels every 200 ms even while evdev is present. This covers missed edges and stale `EVIOCGSW` state without a busy-polling loop. On close it blanks the main panel and keypad LED immediately, runs `sxmo_state.sh set screenoff` and tells the cover daemon `LID CLOSED`; on open it clears the lock flag, restores both backlights, sends a trusted `CLOSE` to `locker.so` and runs `sxmo_state.sh set unlock`. Check `rc-service bananarchy-lid status`, `sxmo_state.sh get` and `grep -E " gpio(36|92) " /sys/kernel/debug/gpio`. If the hall polarity is inverted on your unit, set `BANANARCHY_LID_GPIO_FILE` to a different debugfs GPIO file for the fallback path. **Lag fix**: the hall reading is sticky and every `EV_SW` edge forces an immediate re-read, with a 20 ms debounce and 20 ms loop; the daemon writes `/run/bananarchy/lid-state`, `/tmp/bananarchy_screen_locked`, `sxmo.state`, both backlights and DPMS synchronously before spawning any hook. A close is now ~45-90 ms (was over 2 s) and an open ~10-130 ms. `bananarchy-lid-state.sh` drops stale hook spawns by lid state and a generation counter, so a late screenoff cannot re-lock a freshly opened flip. - **Cover display status and behaviour**: `bananarchy-cover-idle` is the compiled 0%-CPU default daemon and answers `bananarchy-coverctl` (`PING`, `STATUS`, `LID CLOSED|OPEN`, `BUTTON`, `NETWORK`, `BATTERY`, `NOTIFY`, `BLANK`/`UNBLANK`, `TEST`, `SET`); the native `bananarchy-coverd` is retained only for diagnostics. With the flip **open** the external panel is fully off and the daemon does not touch the shared QUP5 SPI bus at all; activation also requires `card0-SPI-1/dpms = Off`, so a transient lid-state flap cannot steal the bus from a live main panel. With the flip **closed** the daemon claims gpio13 (SPI bus mux), gpio21 (external D/C) and gpio23 (external reset) via `/dev/gpiochip0`, drives the mux to the cover panel, resets the GC9305, replays `/lib/firmware/nokia,beatles-gc9305-ext-panel.bin` over `/dev/spidev0.1` at 25 MHz and writes 240x240 RGB565 frames. `STATUS` reports `backend=spidev` and `mux=closed` while the cover owns the bus, and `mux=open` after `LID OPEN`, which sends display-off, restores the mux to the internal panel and releases the D/C and reset lines before Xorg flushes another frame. This is why the shipping image can use the cover screen without registering a second panel in the DT: both GC9305s share one SPI bus and the main panel is DPMS-off whenever the flip is closed. The panel stays off until an external side key is pressed: `bananarchy-volume-keys` reads `/run/bananarchy/lid-state` and sends the trusted `BUTTON` datagram instead of changing the volume, which shows the live clock, date, battery percentage and the compact main network indicators (`4G SIG75 WIFI`-style, published by `bananarchy-cover-status.sh` from the NetworkManager dispatcher and at service start). No further button blanks the cover after exactly the same **Config -> Screen blank** timeout that `dwm` uses (`~/.config/sxmo/idle_blank_timeout`, default 300 s, `0` = never; `blank_timeout = auto` in `/etc/bananarchy/cover-display.conf` selects it, a numeric value overrides it). The daemon blocks in `poll()` with no timer while off, so idle CPU stays at 0%. `backend = auto` prefers `/dev/fb1` when the opt-in two-panel DT is installed, using the 32-bpp fbdev `write()` path (not `mmap()`, which raises `SIGBUS`) and `FBIOBLANK`/`FB_BLANK_POWERDOWN` for "fully off". `backend = spidev` forces the userspace path, `backend = fb` forces the fbdev path and `backend = none` releases the bus; `SET backend none` is a live rollback. The external D/C, reset and mux polarities are config keys (`mux_closed_level`, `mux_open_level`, `dc_command_level`, `dc_data_level`, `reset_assert_level`, `reset_idle_level`) and runtime `SET` knobs, so physical sign-off needs no rebuild: close the flip (or hold `LID CLOSED` with the lid broadcaster stopped), run `bananarchy-coverctl TEST bars`, then try `SET mux_closed_level 0|1`, `SET reset_assert_level 0|1` and `SET dc_command_level 0|1` until the bars appear. The shipping DTS deliberately keeps the verified single-panel layout, so `/dev/fb1` is normally absent. A live test with two panels registered produced a working 240x240 external framebuffer but made the main panel go dark, so the two-panel `spi-mux` wiring is opt-in in `devices/nokia-beatles/qcom-msm8905-nokia-beatles-cover.dts`: build it with `scripts/build-beatles-cover-panel.py`, install the resulting DTB/boot.img into `pmOS_boot`, and verify the main panel before keeping it. `scripts/build-beatles-no-cover-dtb.py` builds the single-panel rollback DTB. The external firmware and `mux-core`/`mux-gpio`/`spi-mux` modules are already provisioned in the initramfs; `scripts/test-cover-idle.py`, `scripts/test-cover-spidev.py` and `scripts/test-cover-dt.py` verify the state machine, the closed-flip bus handover and both DT layouts on the host. Physical sign-off of the external D/C and reset polarity and of the cover backlight is still required with eyes on a live 2720 Flip; `devices/nokia-beatles/cover-panel.dtsi` remains a compile-checked reference for older DTBs. Run `bananarchy-cover-diagnose.sh` on the phone to check `/dev/fb1`, `/dev/spidev0.1`, the GPIO lines, the mux/panel modules, the firmware, the lid state and `bananarchy-coverctl STATUS` in one report. If the external panel disturbs the main display during sign-off, `SET backend none` releases the bus immediately and `scripts/build-beatles-no-cover-dtb.py --install` rebuilds the verified single-panel DTB/boot image for `pmOS_boot`. - **Camera app frozen / UI unresponsive**: check `top` for `bananarchy-volume-keys`. The daemon must be a single instance at 0% CPU; stale evdev fds are pruned by `prune_devices()`/`drop_device()` and guarded by `flock`. `rc-service bananarchy-volume-keys status` and `bananarchy-keypad-diagnose.sh` report its state. `xcamera` should return immediately and `bananarchy-photo ` should write a 600x800 JPEG. - **Camera**: `/dev/video0` is provided by the out-of-tree `msm8905-cam` module, loaded at boot by `/etc/modules-load.d/bananarchy-hardware.conf` and `etc/local.d/10-bananarchy-hardware.start`. Check with `v4l2-ctl --list-devices`; a missing node means the module did not load (previously caused by a missing `/bin/sed` breaking the `modules` service). diff --git a/README.md b/README.md index 46b5013..54565ba 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs - **Kopher SmallWeb browser (`xkopher` / `kopher` / `xsmallweb` / `smallweb.so`)**: multi-protocol SmallWeb client for **Gopher** (`gopher://`) with optional TLS (`gophers://`), **Gemini** (`gemini://`), **Spartan** (`spartan://`), and **Nex** (`nex://`), featuring WAP-style default keypad controls from [Kopher](https://code.luxferre.top/luxferre/kopher.git), user-adjustable keybindings (`~/.config/sxmo/smallweb_controls.tsv`), 10 bookmarks, custom homepage support, and link focus that always scrolls the viewport to the focused link in both wrapped and unwrapped modes. - **Webarchy Web browser (`webarchy` / `xwebarchy` / `webarchy.so`)**: full-featured HTML5/CSS3/JS web browser built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`, WebGL, accelerated 2D canvas, and 512 MB RAM pressure tuning), default KaiOS 4.0 User-Agent (`Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0`) with preset and custom User-Agent override (`~/.config/sxmo/webarchy_ua.txt`), `UTF-8` default encoding fallback, `Noto Sans` / `Noto Serif` (`font-noto` + `font-noto-emoji`) as the default non-monospace browser fonts and `Fira Code` with OpenType ligatures as the monospace font, full GStreamer multimedia (`MediaSource` / MSE, WebAudio, inline HTML5 `