Preconfigure Abjects IRC, refresh status bar charge icon and clock, update live device

- Ship ~/.config/sxmo/irc_servers.tsv (home and /etc/skel) with Abjects
  (irc.abjects.net, TLS port 6697) auto-joining #bananarchy, and change the
  compiled irc.so defaults to the same network; rebuild and mirror irc.so.
- Republish the charge icon together with a fresh clock on battery events,
  force the icon on state_change and forced battery refreshes, and add a
  lightweight refresh action called after an NTP clock step.
- Update the connected phone: sync network time, apk update plus
  apk upgrade -a, deploy the overlay and restart xirc; verify the status bar
  clock and charge icon; rebuild the a1108 / dejavu image.
- Guard the new IRC and status bar paths in check-rebuild.sh and sync
  README, MANUAL, AGENTS and the a1108 changelog.
This commit is contained in:
Luxferre committed 2026-11-08 10:36:45 +02:00
1 parent 8448b6465f
commit fb091749f0
13 files changed
+139 -11

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ Sync net time** (`src/sxmo-dmenu/dmenu.c` +
`usr/bin/bananarchy-sync-net-time.sh`) forces the same burst manually and `usr/bin/bananarchy-sync-net-time.sh`) forces the same burst manually and
notifies the user, and the helper's `sync` mode reports the result. Keep DNS notifies the user, and the helper's `sync` mode reports the result. Keep DNS
resolution outside the helper's `flock` so a long boot retry cannot swallow resolution outside the helper's `flock` so a long boot retry cannot swallow
network-up events, and keep `var/lib/chrony` owned by the `chrony` user. Network state changes are event-driven through `etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh` + `usr/bin/bananarchy-network-event.sh`; keep `superctl disable sxmo_networkmonitor` in the session start hooks, and never reintroduce `superctl start sxmo_networkmonitor` or a long-lived `nmcli device monitor`. The status bar clock must be refreshed synchronously on unlock (`sxmo_hook_unlock.sh`) and by dmenu's `update_t9_status_indicator()` before `XStoreName()`; `sxmo_hook_statusbar.sh` forces a root-name refresh on `time` / `state_change`. `postmarketos-zram-swap` uses `/usr/bin/zramstart`, not `/etc/conf.d/zram-init`: keep `deviceinfo_zram_swap_algo="lz4"` in every `devices/*/deviceinfo*` file. Keep `vm.compaction_proactiveness=0` in `etc/sysctl.d/99-bananarchy-power.conf` and `etc/local.d/10-power-save.start`; see `BATTERY-OPTIMIZATION-ANALYSIS.md` §17 and §18. 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 because `CONFIG_SUSPEND` is off. A full custom module tree rebuild is deliberately **not** planned: this firmware has no PSCI `SYSTEM_SUSPEND`, so `CONFIG_SUSPEND` would only give s2idle (`freeze`), not `mem` / DDR self-refresh, for <1 mA of saving (see `BATTERY-OPTIMIZATION-ANALYSIS.md` §14 and §17). Never force `sxmo.noidle`/`sxmo.nosuspend` from the session scripts and never reintroduce the infinite `sxmo_not_suspendable` wakelock. `/etc/bananarchy/` is root-only. network-up events, and keep `var/lib/chrony` owned by the `chrony` user. Network state changes are event-driven through `etc/NetworkManager/dispatcher.d/30-bananarchy-network-status.sh` + `usr/bin/bananarchy-network-event.sh`; keep `superctl disable sxmo_networkmonitor` in the session start hooks, and never reintroduce `superctl start sxmo_networkmonitor` or a long-lived `nmcli device monitor`. The status bar clock must be refreshed synchronously on unlock (`sxmo_hook_unlock.sh`) and by dmenu's `update_t9_status_indicator()` before `XStoreName()`; `sxmo_hook_statusbar.sh` forces a root-name refresh on `time` / `state_change`, and its `battery` and `refresh` actions republish the charge icon together with a fresh clock (`bananarchy-time-sync.sh` calls `refresh` after an NTP clock step). `postmarketos-zram-swap` uses `/usr/bin/zramstart`, not `/etc/conf.d/zram-init`: keep `deviceinfo_zram_swap_algo="lz4"` in every `devices/*/deviceinfo*` file. Keep `vm.compaction_proactiveness=0` in `etc/sysctl.d/99-bananarchy-power.conf` and `etc/local.d/10-power-save.start`; see `BATTERY-OPTIMIZATION-ANALYSIS.md` §17 and §18. 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 because `CONFIG_SUSPEND` is off. A full custom module tree rebuild is deliberately **not** planned: this firmware has no PSCI `SYSTEM_SUSPEND`, so `CONFIG_SUSPEND` would only give s2idle (`freeze`), not `mem` / DDR self-refresh, for <1 mA of saving (see `BATTERY-OPTIMIZATION-ANALYSIS.md` §14 and §17). 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. - **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. - **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. - **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.
+39
View File
@@ -14,6 +14,45 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
This build contains all previously unreleased changes below. The image and This build contains all previously unreleased changes below. The image and
release metadata are generated by `scripts/version.sh` as `a1108` / `dejavu`. release metadata are generated by `scripts/version.sh` as `a1108` / `dejavu`.
### Abjects IRC default, status bar charge/time refresh and live device update
- **Abjects is now the preconfigured IRC network**: `xirc` / `irc.so` ships
`~/.config/sxmo/irc_servers.tsv` (also in `/etc/skel`) with a single
`Abjects` entry for `irc.abjects.net`, TLS enabled (`1`), port `6697`, and
`#bananarchy` as the auto-join channel, with background mode on. The
compiled fallback and the new-server draft in `irc_plugin.cpp` were changed
from Libera.Chat to the same Abjects defaults, so a missing or reset config
still connects to Abjects and joins `#bananarchy`. `prebuilt/sxmo-x11` was
rebuilt for `irc.so` and mirrored into `overlay/rootfs` with
`scripts/sync-prebuilt-overlay.sh`; `README.md` and `MANUAL.md` now
document the default network. `scripts/check-rebuild.sh` guards the
shipped TSV columns, the compiled defaults, and the documentation.
- **Charge icon and clock are republished together**: a charger or capacity
event now runs `set_time` and forces a root-name refresh in
`sxmo_hook_statusbar.sh`, so the charge icon cannot be left on the bar with
a stale clock. `state_change` refreshes the charge icon unconditionally
instead of only when the panel is already bright, closing the unlock race
where `is_screen_dark()` still reported a dark backlight. A forced battery
refresh removes the old icon file first, so `sxmo_status.sh` cannot skip the
write when the value is unchanged. `bananarchy-time-sync.sh` calls a new
lightweight `sxmo_hook_statusbar.sh refresh` action as the X session user
after a successful NTP burst, republishing the clock and charge icon
immediately when `chronyd` steps the clock instead of waiting for the next
300 s periodic tick. `scripts/check-rebuild.sh` guards all four paths.
- **Live phone updated and verified**: network time was synced on the
connected device (the RTC had fallen back to 1970, which also broke TLS
certificate validation), all installed packages were refreshed with
`apk update` followed by `apk upgrade -a` (165 upgrades, 2 installs, and
9 purges; `951.4 MiB in 888 packages`), and the updated overlay, IRC
config, and `irc.so` were deployed to the phone. The resident `xirc` daemon
was restarted so it loaded the Abjects config. The status bar was refreshed
with the new `refresh` action: `099-time` matches the local clock
(`10:33 EET`), and `040-battery-icon-pm8916-bms-vm` was rewritten with the
correct charging icon for the reported state and capacity. The `a1108` /
`dejavu` image was rebuilt afterwards.
---
### Event-driven network status and no-tradeoff idle A/B sweep ### Event-driven network status and no-tradeoff idle A/B sweep
- **Removed the `nmcli device monitor` poller**: `sxmo_networkmonitor.sh` - **Removed the `nmcli device monitor` poller**: `sxmo_networkmonitor.sh`
+2 -2
View File
@@ -253,7 +253,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
- **Three tabs (`1:Chat`, `2:Buffers`, `3:Servers` — switch with `Left`/`Right`)**: - **Three tabs (`1:Chat`, `2:Buffers`, `3:Servers` — switch with `Left`/`Right`)**:
- **`1:Chat`**: displays scrollable message history (`Up`/`Down`) and multi-tap input bar (`*`/`#` cycles mode, **Center `OK`** or **Call (green)** sends message or executes `/join`, `/part`, `/leave`, `/close`, `/msg`, `/query`, `/nick`, `/me`, `/clear`, `/connect`, `/disconnect`, `/raw`, `/quit`). - **`1:Chat`**: displays scrollable message history (`Up`/`Down`) and multi-tap input bar (`*`/`#` cycles mode, **Center `OK`** or **Call (green)** sends message or executes `/join`, `/part`, `/leave`, `/close`, `/msg`, `/query`, `/nick`, `/me`, `/clear`, `/connect`, `/disconnect`, `/raw`, `/quit`).
- **`2:Buffers`**: lists server `*status*` buffers, joined `#channels`, and private query buffers with server/nick/connection subtitle and unread (`+N`) or `ACTIVE` badges. Highlight any buffer with `Up`/`Down` (or `2`/`8`) to switch the active buffer and press **Center `OK`**, `5`, **Call (green)**, `Left`, or **Right softkey (`Back`)** to open it in `Chat`; press `BackSpace` or **Left softkey (`Menu -> Close Buffer`)** to part and close the selected buffer. - **`2:Buffers`**: lists server `*status*` buffers, joined `#channels`, and private query buffers with server/nick/connection subtitle and unread (`+N`) or `ACTIVE` badges. Highlight any buffer with `Up`/`Down` (or `2`/`8`) to switch the active buffer and press **Center `OK`**, `5`, **Call (green)**, `Left`, or **Right softkey (`Back`)** to open it in `Chat`; press `BackSpace` or **Left softkey (`Menu -> Close Buffer`)** to part and close the selected buffer.
- **`3:Servers`**: manage multiple IRC servers (`~/.config/sxmo/irc_servers.tsv`, preconfigured with Libera.Chat over TLS `6697`), supporting OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), and `SASL PLAIN` authentication. - **`3:Servers`**: manage multiple IRC servers (`~/.config/sxmo/irc_servers.tsv`, preconfigured with Abjects (`irc.abjects.net`) over TLS `6697` and auto-joining `#bananarchy`), supporting OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), and `SASL PLAIN` authentication.
- **Background mode (`BG Mode`)**: when `BG Mode` is enabled on a server, closing `xirc` keeps the active IRC socket connection alive in the resident daemon and triggers notification hooks on nick highlights or private messages. - **Background mode (`BG Mode`)**: when `BG Mode` is enabled on a server, closing `xirc` keeps the active IRC socket connection alive in the resident daemon and triggers notification hooks on nick highlights or private messages.
19. **Tox / Trifa P2P messenger and audio call client (`tox.so` / `xtox`)**: 19. **Tox / Trifa P2P messenger and audio call client (`tox.so` / `xtox`)**:
@@ -589,7 +589,7 @@ The **Xlibre** display server (`modesetting_drv.so`) uses **Glamor + DRI3 + GLX
`chronyd` runs from the default runlevel with `pool pool.ntp.org iburst minpoll 12 maxpoll 16`: long polls keep Wi-Fi asleep, while `iburst` sets the clock within seconds whenever the pool resolves. Because NetworkManager installs `resolv.conf` after `chronyd` starts, a `bananarchy-time-sync` OpenRC service and `/etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.sh` re-resolve the pool and request an immediate burst when a connection comes up (`up`, `dhcp4-change`, `dhcp6-change`, `dns-change`, `connectivity-change`, `vpn-up`). The helper uses chronyd's root-only Unix command socket, so `cmdport 0` keeps the UDP command port closed, and it throttles repeats with a monotonic uptime stamp so a decades-long clock step cannot confuse it. `/var/lib/chrony` is owned by the `chrony` user so the driftfile survives reboots. `chronyd` runs from the default runlevel with `pool pool.ntp.org iburst minpoll 12 maxpoll 16`: long polls keep Wi-Fi asleep, while `iburst` sets the clock within seconds whenever the pool resolves. Because NetworkManager installs `resolv.conf` after `chronyd` starts, a `bananarchy-time-sync` OpenRC service and `/etc/NetworkManager/dispatcher.d/20-bananarchy-time-sync.sh` re-resolve the pool and request an immediate burst when a connection comes up (`up`, `dhcp4-change`, `dhcp6-change`, `dns-change`, `connectivity-change`, `vpn-up`). The helper uses chronyd's root-only Unix command socket, so `cmdport 0` keeps the UDP command port closed, and it throttles repeats with a monotonic uptime stamp so a decades-long clock step cannot confuse it. `/var/lib/chrony` is owned by the `chrony` user so the driftfile survives reboots.
If the clock is still wrong after a connection comes up, use **Config -> Sync net time**. It runs `bananarchy-sync-net-time.sh`, forces an immediate burst over the same Unix socket, and shows a notification with the synced UTC date or a failure message. This is also handy after a long offline period, when the RTC has fallen back to 1970. If the clock is still wrong after a connection comes up, use **Config -> Sync net time**. It runs `bananarchy-sync-net-time.sh`, forces an immediate burst over the same Unix socket, and shows a notification with the synced UTC date or a failure message. This is also handy after a long offline period, when the RTC has fallen back to 1970. After a confirmed sync, the helper calls `sxmo_hook_statusbar.sh refresh` as the X session user, so the status bar clock and charge icon are republished immediately instead of waiting for the next 300 s periodic tick. Charge events likewise refresh both the charge icon and the clock, and unlock forces a charge icon refresh even if the backlight is not yet bright.
```bash ```bash
bananarchy-time-sync.sh status # chronyc tracking + sources (via doas) bananarchy-time-sync.sh status # chronyc tracking + sources (via doas)
+1 -1
View File
@@ -41,7 +41,7 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`, `webarchy`)**: - **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`, `webarchy`)**:
- **SIP VoIP client (`xsip` / `sip.so`)**: RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History`) supporting both account-registered calling (with Digest MD5 authentication and standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 3263 DNS `SRV` (`_sip._udp.<domain>`) proxy discovery and dialog routing, RFC 6189 **ZRTP** media-path Diffie-Hellman (`DH3k`/`DH2k`) key agreement and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`) voice encryption with a 4-character `SAS` verification code, incoming `INVITE` ringing and call handling integrated with `xcallscreen` (`[SIP/<codec>]` / `[SIP/<codec>:<sas>]`), multi-codec wideband and narrowband RTP/SRTP audio (`Opus` 16 kHz / 48 kHz RTP clock with in-band FEC, `ITU-T G.722` 16 kHz wideband SB-ADPCM, `G.711 PCMU`/`PCMA` 8 kHz, `GSM 06.10` Full Rate 8 kHz, `ITU-T G.726-32` 8 kHz ADPCM, `IMA ADPCM DVI4` 8/16 kHz, and `L16` uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and RFC 2833 / RFC 4733 DTMF. - **SIP VoIP client (`xsip` / `sip.so`)**: RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History`) supporting both account-registered calling (with Digest MD5 authentication and standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 3263 DNS `SRV` (`_sip._udp.<domain>`) proxy discovery and dialog routing, RFC 6189 **ZRTP** media-path Diffie-Hellman (`DH3k`/`DH2k`) key agreement and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`) voice encryption with a 4-character `SAS` verification code, incoming `INVITE` ringing and call handling integrated with `xcallscreen` (`[SIP/<codec>]` / `[SIP/<codec>:<sas>]`), multi-codec wideband and narrowband RTP/SRTP audio (`Opus` 16 kHz / 48 kHz RTP clock with in-band FEC, `ITU-T G.722` 16 kHz wideband SB-ADPCM, `G.711 PCMU`/`PCMA` 8 kHz, `GSM 06.10` Full Rate 8 kHz, `ITU-T G.726-32` 8 kHz ADPCM, `IMA ADPCM DVI4` 8/16 kHz, and `L16` uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and RFC 2833 / RFC 4733 DTMF.
- **Email client (`xemail` / `xmail` / `email.so`)**: multi-account `IMAP4rev1`, `POP3`, and `SMTP` client (`Inbox`, `Compose`, `Accounts`) supporting implicit TLS, `STARTTLS`, and plain TCP, SASL `PLAIN`/`LOGIN`, MIME RFC 2047/Base64/Quoted-Printable decoding, offline inbox cache, full-screen message reader, and composer. - **Email client (`xemail` / `xmail` / `email.so`)**: multi-account `IMAP4rev1`, `POP3`, and `SMTP` client (`Inbox`, `Compose`, `Accounts`) supporting implicit TLS, `STARTTLS`, and plain TCP, SASL `PLAIN`/`LOGIN`, MIME RFC 2047/Base64/Quoted-Printable decoding, offline inbox cache, full-screen message reader, and composer.
- **IRCv3 client (`xirc` / `irc.so`)**: multi-server IRC client (`Buffers`, `Chat`, `Servers`) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, slash commands, and resident background mode with highlight vibration alerts. - **IRCv3 client (`xirc` / `irc.so`)**: multi-server IRC client (`Buffers`, `Chat`, `Servers`) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, slash commands, and resident background mode with highlight vibration alerts; the default network is Abjects (`irc.abjects.net`, TLS port `6697`) auto-joining `#bananarchy`.
- **Tox / Trifa P2P messenger and audio call client (`xtox` / `tox.so`)**: encrypted P2P messenger (`Friends`, `Chat`, `My Tox ID`) built on `c-toxcore` (`libtoxcore.so.2`) with DHT + TCP relay bootstrap, friend requests, persistent message history, and `ToxAV` 48 kHz Opus voice calls integrated with `xcallscreen`. - **Tox / Trifa P2P messenger and audio call client (`xtox` / `tox.so`)**: encrypted P2P messenger (`Friends`, `Chat`, `My Tox ID`) built on `c-toxcore` (`libtoxcore.so.2`) with DHT + TCP relay bootstrap, friend requests, persistent message history, and `ToxAV` 48 kHz Opus voice calls integrated with `xcallscreen`.
- **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. - **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 `<video>`/`<audio>` autoplay without user gesture requirements), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header badge, `*`+`0-9` save / `#`+`0-9` load chords, and bookmark manager), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap form input by default, plus an optional `*#` accelerated mouse cursor emulation mode). - **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 `<video>`/`<audio>` autoplay without user gesture requirements), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header badge, `*`+`0-9` save / `#`+`0-9` load chords, and bookmark manager), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap form input by default, plus an optional `*#` accelerated mouse cursor emulation mode).
@@ -0,0 +1 @@
Abjects irc.abjects.net 6697 1 bananarchy bananarchy Bananarchy Linux User #bananarchy 1
1 Abjects irc.abjects.net 6697 1 bananarchy bananarchy Bananarchy Linux User #bananarchy 1
@@ -0,0 +1 @@
Abjects irc.abjects.net 6697 1 bananarchy bananarchy Bananarchy Linux User #bananarchy 1
1 Abjects irc.abjects.net 6697 1 bananarchy bananarchy Bananarchy Linux User #bananarchy 1
+15 -2
View File
@@ -77,6 +77,18 @@ synced() {
[ -n "$ref" ] && [ "$ref" != "00000000" ] [ -n "$ref" ] && [ "$ref" != "00000000" ]
} }
refresh_statusbar() {
# chronyd can step the clock by decades (e.g. from a 1970 RTC to network
# time). Republish the status bar clock and charge icon as the X session
# user so they do not stay stale until the next 300 s periodic tick.
su user -s /bin/sh -c '
HOME=/home/user DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 \
SXMO_WM=dwm SXMO_STATUS_NAME=default SXMO_STATE=/run/user/10000/sxmo.state \
PATH=/usr/share/sxmo/default_hooks:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \
sxmo_hook_statusbar.sh refresh
' >/dev/null 2>&1 || true
}
# refresh re-resolves pool names asynchronously. Keep retrying while DNS is # refresh re-resolves pool names asynchronously. Keep retrying while DNS is
# still down; the boot caller allows a minute, later network events a few # still down; the boot caller allows a minute, later network events a few
# seconds. No stamp is written on failure, so the next event can retry. # seconds. No stamp is written on failure, so the next event can retry.
@@ -137,6 +149,7 @@ sync_now() {
i=0 i=0
while [ "$i" -lt "$SYNC_WAIT" ]; do while [ "$i" -lt "$SYNC_WAIT" ]; do
if synced; then if synced; then
refresh_statusbar
printf 'Network time synced: %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" printf 'Network time synced: %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')"
return 0 return 0
fi fi
@@ -149,10 +162,10 @@ sync_now() {
case "${1:-status}" in case "${1:-status}" in
boot|network-up) boot|network-up)
trigger "$1" trigger "$1" && refresh_statusbar
;; ;;
force) force)
trigger force trigger force && refresh_statusbar
;; ;;
sync) sync)
sync_now sync_now
Binary file not shown.
@@ -134,6 +134,13 @@ if [ "$(id -u)" = "0" ]; then
chown 10000:10000 "$CACHE_FILE" "$SET_LED_PATH" "${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo.led.lock" 2>/dev/null || true chown 10000:10000 "$CACHE_FILE" "$SET_LED_PATH" "${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo.led.lock" 2>/dev/null || true
fi fi
# A forced refresh (unlock, state change, post-sync) must republish the
# charge icon even when its value is unchanged: sxmo_status.sh skips
# unchanged values, which would otherwise leave a stale icon on the bar.
if [ "$FORCE_UPDATE" = "1" ]; then
rm -f "$ICON_FILE" 2>/dev/null || true
fi
sxmo_hook_statusbar.sh battery "$name" "$state" "$percentage" sxmo_hook_statusbar.sh battery "$name" "$state" "$percentage"
if [ "$(id -u)" = "0" ]; then if [ "$(id -u)" = "0" ]; then
chown -R 10000:10000 "${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo_status" 2>/dev/null || true chown -R 10000:10000 "${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo_status" 2>/dev/null || true
@@ -511,6 +511,11 @@ case "$1" in
battery) battery)
shift shift
set_battery "$@" set_battery "$@"
# A charger/capacity event must republish both the charge icon and the
# clock: sxmo_status.sh skips unchanged values, so force the root-name
# refresh instead of relying on the file comparison alone.
set_time
force_bar=1
;; ;;
time) time)
is_screen_dark && exit 0 is_screen_dark && exit 0
@@ -530,15 +535,26 @@ case "$1" in
# display-on; dmenu reads these files directly after unlock. # display-on; dmenu reads these files directly after unlock.
set_time set_time
force_bar=1 force_bar=1
# Refresh the charge icon unconditionally: the unlock hook can race ahead
# of the backlight, so is_screen_dark() may still report a dark panel
# while the statusbar is already being republished.
sxmo_hook_battery.sh force 2>/dev/null || true
if ! is_screen_dark; then if ! is_screen_dark; then
set_inputmethod set_inputmethod
if [ -z "$SXMO_NO_MODEM" ]; then if [ -z "$SXMO_NO_MODEM" ]; then
set_modem set_modem
fi fi
set_network wifi wlan0 set_network wifi wlan0
sxmo_hook_battery.sh force 2>/dev/null || true
fi fi
;; ;;
refresh)
# Lightweight post-sync refresh: after chronyd steps the clock (e.g.
# from a 1970 RTC to network time), republish the clock and charge icon
# without the modem/NetworkManager queries of state_change.
set_time
force_bar=1
sxmo_hook_battery.sh force 2>/dev/null || true
;;
periodics) # 300 s loop (U3): no QMI/D-Bus polls on every tick periodics) # 300 s loop (U3): no QMI/D-Bus polls on every tick
if is_screen_dark || [ -f /tmp/bananarchy_screen_locked ]; then if is_screen_dark || [ -f /tmp/bananarchy_screen_locked ]; then
exit 0 exit 0
Binary file not shown.
+51
View File
@@ -296,6 +296,57 @@ if ! grep -q 'compaction_proactiveness' \
fail "10-power-save.start no longer disables proactive compaction" fail "10-power-save.start no longer disables proactive compaction"
fi fi
echo "[check] Abjects IRC default network..."
IRC_SRC="$BASE_DIR/src/dwm-plugins/irc_plugin.cpp"
IRC_TSV="$BASE_DIR/overlay/rootfs/home/user/.config/sxmo/irc_servers.tsv"
IRC_SKEL="$BASE_DIR/overlay/rootfs/etc/skel/.config/sxmo/irc_servers.tsv"
for f in "$IRC_SRC" "$IRC_TSV" "$IRC_SKEL"; do
if [ ! -f "$f" ]; then
fail "missing ${f#$BASE_DIR/}"
fi
done
if ! grep -q 'irc.abjects.net' "$IRC_SRC" || \
! grep -q 'Abjects' "$IRC_SRC" || \
! grep -q '#bananarchy' "$IRC_SRC"; then
fail "irc_plugin.cpp no longer defaults to Abjects / #bananarchy"
fi
for f in "$IRC_TSV" "$IRC_SKEL"; do
if ! awk -F '\t' '
$1 == "Abjects" && $2 == "irc.abjects.net" && $3 == "6697" &&
$4 == "1" && $10 == "#bananarchy" { found = 1 }
END { exit !found }' "$f"; then
fail "${f#$BASE_DIR/} is not preconfigured for Abjects over TLS 6697"
fi
done
if ! grep -q 'Abjects' "$BASE_DIR/MANUAL.md" || \
! grep -q 'Abjects' "$BASE_DIR/README.md"; then
fail "IRC documentation is not synchronized with the Abjects default"
fi
echo "[check] Status bar charge icon and clock refresh..."
BATTERY_HOOK="$BASE_DIR/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_battery.sh"
TIME_SYNC="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-time-sync.sh"
BATTERY_CASE="$(sed -n '/^ battery)/,/^ ;;/p' "$STATUS_HOOK")"
if ! printf '%s\n' "$BATTERY_CASE" | grep -q 'set_time' || \
! printf '%s\n' "$BATTERY_CASE" | grep -q 'force_bar=1'; then
fail "battery events no longer republish the charge icon and clock"
fi
if ! grep -q '^ refresh)' "$STATUS_HOOK" || \
! grep -q 'refresh_statusbar' "$TIME_SYNC"; then
fail "post-sync status bar refresh is missing"
fi
if ! grep -q 'sxmo_hook_statusbar.sh battery' "$BATTERY_HOOK"; then
fail "battery hook no longer writes the charge icon"
fi
if ! grep -q 'rm -f "$ICON_FILE"' "$BATTERY_HOOK"; then
fail "forced battery refresh no longer republishes an unchanged charge icon"
fi
for f in "$BATTERY_HOOK" "$TIME_SYNC" "$STATUS_HOOK"; do
if ! sh -n "$f" 2>/dev/null; then
fail "shell syntax: ${f#$BASE_DIR/}"
fi
done
echo "[check] Docker availability..." echo "[check] Docker availability..."
if ! command -v docker >/dev/null 2>&1; then if ! command -v docker >/dev/null 2>&1; then
fail "docker is not installed" fail "docker is not installed"
+4 -4
View File
@@ -66,8 +66,8 @@ struct IrcBuffer {
}; };
struct IrcServerConfig { struct IrcServerConfig {
std::string label = "Libera.Chat"; std::string label = "Abjects";
std::string host = "irc.libera.chat"; std::string host = "irc.abjects.net";
int port = 6697; int port = 6697;
bool useTls = true; bool useTls = true;
std::string nick = "bananarchy"; std::string nick = "bananarchy";
@@ -121,8 +121,8 @@ std::vector<IrcServerConfig> loadIrcServers() {
} }
if (list.empty()) { if (list.empty()) {
IrcServerConfig def; IrcServerConfig def;
def.label = "Libera.Chat"; def.label = "Abjects";
def.host = "irc.libera.chat"; def.host = "irc.abjects.net";
def.port = 6697; def.port = 6697;
def.useTls = true; def.useTls = true;
def.nick = "banana" + std::to_string(::getpid() % 900 + 100); def.nick = "banana" + std::to_string(::getpid() % 900 + 100);