Center Save & Activate APN button label in xnetworks APN editor

- Dynamically center the "Save & Activate APN" button label in
  NetModal::ApnEditor using pangoTextWidth(layoutMain, ...) instead of a
  hardcoded x = 50 offset in src/dwm-plugins/networks_plugin.cpp
- Rebuild DWM plugins via scripts/build-dwm-plugins.sh and sync networks.so
  across prebuilt/ and overlay/rootfs/
- Update Unreleased CHANGELOG.md notes and rebuilt --mkinitfs image SHA-256
  checksums across all four targets in scripts/check-rebuild.sh
This commit is contained in:
Luxferre committed 2026-11-21 13:20:33 +02:00
1 parent 601aaca25c
commit c529463ae3
5 files changed
+22 -17

No files matched your search

+8 -8
View File
@@ -17,7 +17,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
### Cellular PS attach, Dual-SIM QMI WDS subscription binding (`libmm-wds-bind.so`), and mobile data (`wwan0`) fixes across all targets
- **QMI `WDS` subscription binding (`src/bananarchy-daemons/mm-wds-bind.c`, `libmm-wds-bind.so`, `/etc/init.d/modemmanager`)**: added a lightweight C `LD_PRELOAD` library preloaded by `ModemManager` and `msm-modem-uim-selection` (`run_wds_qmicli`) that hooks `qmi_device_allocate_client_finish()`, `qmi_client_wds_bind_mux_data_port()`, and `qmi_client_wds_bind_data_port()` to serialize `QMI_SUBSCRIPTION_TYPE_PRIMARY` (`1`, overrideable via `BANANARCHY_WDS_SUBSCRIPTION`) binding on every `QMI_SERVICE_WDS` (`1`) client both at allocation and after `Bind Mux Data Port` (`0x00A2`) / `Bind Data Port` (`0x0089`), preventing sticky KaiOS `SECONDARY` EFS `DDS` state (`QMI_DSD 0x004F == 2`) from resetting or routing `WDS Start Network` or `3gpp` profile lookups to the unprovisioned secondary subscription.
- **DSDS PS-domain handoff, APN sync, autoconnect race fix, cold-boot MM recovery, and safe `cs-only` dial pause/restore (`msm-modem-uim-selection`, `10-bananarchy-dpm.sh`, `networks_plugin.cpp`)**: updated `ensure_dsds_nas_registration()` (`QrtrTransport` `NAS` + `DSD`) to lock `Secondary GW` (`sub=1`) to GSM/`cs-only`, promote `Primary GW` (`sub=0`) to `cs-ps` + `gsm,umts,lte` (unless `rat_parked`) and `PS attach`, and bind `QMI_DSD` to `PRIMARY` (`data_enabled=1`) without triggering `QMI_DSD 0x004E`; updated `sync_wds_apn()` to populate empty `Profile [1]` alongside `attach_pdn`/`def_prof` directly via `QMI_WDS` while skipping `ims`/`sos` and removing `mmcli --3gpp-set-initial-eps-bearer-settings` calls (which triggered asynchronous 3GPP detaches before dial); added ANSI-safe `mmcli -K` cold-boot `failed` (`sim-missing`) auto-recovery and `nmcli` `gsm:` readiness gating in `mobile-data-prep` alongside `22 s` waits + `spawn_enable_and_register` in `boot`; switched cellular GSM profiles in `networks.so` and `mobile-data-prep` to `connection.autoconnect no` and ran `nmcli connection modify` before `mobile-data-prep` (and cleared any in-flight `qrtr0` `connecting` state) so background autoconnect never collides with `nmcli --wait 30 connection up` (`QMI OutOfCall (15)`); added `mobile-data-prep` / `restore-dsds` (`dsds_paused_for_data`) pause/reactivation via `10-bananarchy-dpm.sh` and `networks.so` when carrier EFS still holds `sub=0` in `cs-only`; and added `pre-up.d/10-bananarchy-dpm.sh` so `wwan0` BAM-DMUX opens before NetworkManager dial.
- **DSDS PS-domain handoff, APN sync, autoconnect race fix, cold-boot MM recovery, safe `cs-only` dial pause/restore, and APN Editor button centering (`msm-modem-uim-selection`, `10-bananarchy-dpm.sh`, `networks_plugin.cpp`)**: updated `ensure_dsds_nas_registration()` (`QrtrTransport` `NAS` + `DSD`) to lock `Secondary GW` (`sub=1`) to GSM/`cs-only`, promote `Primary GW` (`sub=0`) to `cs-ps` + `gsm,umts,lte` (unless `rat_parked`) and `PS attach`, and bind `QMI_DSD` to `PRIMARY` (`data_enabled=1`) without triggering `QMI_DSD 0x004E`; updated `sync_wds_apn()` to populate empty `Profile [1]` alongside `attach_pdn`/`def_prof` directly via `QMI_WDS` while skipping `ims`/`sos` and removing `mmcli --3gpp-set-initial-eps-bearer-settings` calls (which triggered asynchronous 3GPP detaches before dial); added ANSI-safe `mmcli -K` cold-boot `failed` (`sim-missing`) auto-recovery and `nmcli` `gsm:` readiness gating in `mobile-data-prep` alongside `22 s` waits + `spawn_enable_and_register` in `boot`; switched cellular GSM profiles in `networks.so` and `mobile-data-prep` to `connection.autoconnect no` and ran `nmcli connection modify` before `mobile-data-prep` (and cleared any in-flight `qrtr0` `connecting` state) so background autoconnect never collides with `nmcli --wait 30 connection up` (`QMI OutOfCall (15)`); added `mobile-data-prep` / `restore-dsds` (`dsds_paused_for_data`) pause/reactivation via `10-bananarchy-dpm.sh` and `networks.so` when carrier EFS still holds `sub=0` in `cs-only`; added `pre-up.d/10-bananarchy-dpm.sh` so `wwan0` BAM-DMUX opens before NetworkManager dial; and centered the `"Save & Activate APN"` button label horizontally using `pangoTextWidth()`.
- **Idle `QMI_IMSDCM` (`0x0302`) isolation & bearer separation (`bananarchy-imsd.c`, `bananarchy-ims-bearer.sh`)**: gated QRTR `QMI_IMSDCM` (`0x0302`) server registration behind active VoLTE (`ensure_imsdcm()` / `close_imsdcm()`) and emitted `IMS_QMI_FLAG_IND` on `PDP_ACTIVATE`/`PDP_DEACTIVATE` so `MPSS.JO.3.1` `IMSAgent` cannot stall `DDSState = Pending` (`CM 2007`) at idle, while keeping IMS bearers isolated to `wwan1`/`rmnet_data1` away from `wwan0`.
- **Offline regression suite (`scripts/test-lte-mobile-data.py`, `scripts/check-rebuild.sh`)**: added offline host tests covering Dual-SIM/Single-SIM `ensure-ps-domain` over mock QRTR (`NAS` + `DSD`), `rat_parked` preservation, `cs-only` Dual-SIM pause and dispatcher `restore-dsds`, `Profile [1/4/5]` APN sync + initial-bearer skip, host `gcc` + `ctypes` validation of `mm-wds-bind.c`, and `bananarchy-ims-bearer.sh` `wwan0` isolation, wired into `scripts/check-rebuild.sh`.
@@ -36,13 +36,13 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
- **Rebuilt local image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
- `images/bananarchy-nokia-argon.img`: `beb3c4f9d4bbf2356e6d106fa10adec105f34d3f696bfce8109c85869bab5bfd`
- `images/bananarchy-nokia-beatles.img`: `a240e3d243c9bef0fc1c014f113b0d14d7295815ff3681e7887d4650ebd7f18a`
- `images/boot-bananarchy-nokia-beatles.img`: `c92f99bc07348f9cd63f083440116fdd7fc219c5cbe20526d6eb3cd134cbd7ca`
- `images/bananarchy-nokia-coconut.img`: `e58abff5555b13f2896962166aa2469772ea00f2bf396d032f3637072262a055`
- `images/boot-bananarchy-nokia-coconut.img`: `e96ea67004bc37f4ad912c5cbcc00fc4ad6da895e31bb5201395910c067174e8`
- `images/bananarchy-nokia-sparkler.img`: `a96454fa5baa41e9c5c510636c2a3ac070d01914941b786f05c2e653f9aa8c30`
- `images/boot-bananarchy-nokia-sparkler.img`: `f8fb959bb945b04a3cf9081aed191f055c3650cad8c6ec6509bd0a8694aaf529`
- `images/bananarchy-nokia-argon.img`: `4f72a1156a2e9144386d82f10fc8078e90c69ed60446d0259dfbdf66362f47bc`
- `images/bananarchy-nokia-beatles.img`: `ac29427c8582049bc5fbaa504685442a997e260eb3f74d7b92d5b999f0f4a4fa`
- `images/boot-bananarchy-nokia-beatles.img`: `35aa314d1d21a401412794820416c21d1d22457671489dcf05410d39daf9f7da`
- `images/bananarchy-nokia-coconut.img`: `d7bcfffdc33fefa12f173b4b3664ae02ecb4850b9f7ccf096719f2d19a799772`
- `images/boot-bananarchy-nokia-coconut.img`: `8ffc67df915d27b286aaf0d82186f2d52719d27c67f954f7abafbd206331efc1`
- `images/bananarchy-nokia-sparkler.img`: `d3da5d807c8c53c4c6e153fa3a03155ec2d9e1a854ba29ed18d61dba77fb0174`
- `images/boot-bananarchy-nokia-sparkler.img`: `b46341849e509e71272a946829d3742881dbdb8ed33a58f6a6316288cbb8bb36`
---
Binary file not shown.
Binary file not shown.
+7 -7
View File
@@ -564,15 +564,15 @@ fi
echo "[check] Known-good flashable image set..."
for pair in \
"beb3c4f9d4bbf2356e6d106fa10adec105f34d3f696bfce8109c85869bab5bfd images/bananarchy-nokia-argon.img" \
"a240e3d243c9bef0fc1c014f113b0d14d7295815ff3681e7887d4650ebd7f18a images/bananarchy-nokia-beatles.img" \
"c92f99bc07348f9cd63f083440116fdd7fc219c5cbe20526d6eb3cd134cbd7ca images/boot-bananarchy-nokia-beatles.img" \
"4f72a1156a2e9144386d82f10fc8078e90c69ed60446d0259dfbdf66362f47bc images/bananarchy-nokia-argon.img" \
"ac29427c8582049bc5fbaa504685442a997e260eb3f74d7b92d5b999f0f4a4fa images/bananarchy-nokia-beatles.img" \
"35aa314d1d21a401412794820416c21d1d22457671489dcf05410d39daf9f7da images/boot-bananarchy-nokia-beatles.img" \
"f13db705a714aaebd2d8fcc2e0f7266d0e40268c0a276208117dfdf9d8f45351 images/boot-lk2nd-nokia-beatles-display.img" \
"e58abff5555b13f2896962166aa2469772ea00f2bf396d032f3637072262a055 images/bananarchy-nokia-coconut.img" \
"e96ea67004bc37f4ad912c5cbcc00fc4ad6da895e31bb5201395910c067174e8 images/boot-bananarchy-nokia-coconut.img" \
"d7bcfffdc33fefa12f173b4b3664ae02ecb4850b9f7ccf096719f2d19a799772 images/bananarchy-nokia-coconut.img" \
"8ffc67df915d27b286aaf0d82186f2d52719d27c67f954f7abafbd206331efc1 images/boot-bananarchy-nokia-coconut.img" \
"9a5bd2da6cfd95c745d9c1acb2e3bc61afa339824810e3d160bf079e17b23192 images/boot-lk2nd-nokia-coconut-display.img" \
"a96454fa5baa41e9c5c510636c2a3ac070d01914941b786f05c2e653f9aa8c30 images/bananarchy-nokia-sparkler.img" \
"f8fb959bb945b04a3cf9081aed191f055c3650cad8c6ec6509bd0a8694aaf529 images/boot-bananarchy-nokia-sparkler.img" \
"d3da5d807c8c53c4c6e153fa3a03155ec2d9e1a854ba29ed18d61dba77fb0174 images/bananarchy-nokia-sparkler.img" \
"b46341849e509e71272a946829d3742881dbdb8ed33a58f6a6316288cbb8bb36 images/boot-bananarchy-nokia-sparkler.img" \
"120ade81bc5416263a1afd95a29981675358b98516e105e5ed611edf258a29f7 images/boot-lk2nd-nokia-sparkler-display.img"; do
set -- $pair
want=$1
+7 -2
View File
@@ -1915,10 +1915,15 @@ int runNetworksApp(int argc, char** argv) {
}
bool saveSel = (apnFieldSel == 3);
const int btnX = 18;
const int btnW = kWinWidth - 36;
XSetForeground(dpy, gc, saveSel ? pt.spec.selBg : pt.spec.bgButton);
XFillRectangle(dpy, pix, gc, 18, 202, kWinWidth - 36, 26);
XFillRectangle(dpy, pix, gc, btnX, 202, btnW, 26);
const char* saveLabel = "Save & Activate APN";
int saveTw = pangoTextWidth(layoutMain, saveLabel);
int saveTx = btnX + std::max(4, (btnW - saveTw) / 2);
drawPango(layoutMain, saveSel ? &colWhite : &colGreen,
50, 202, 26, "Save & Activate APN");
saveTx, 202, 26, saveLabel, btnW - 8);
drawSoftkeyBar("Save", "Select", "Cancel");
} else if (modal == NetModal::BtActions) {