Commit Graph
92 Commits
Author SHA1 Message Date
Luxferre 3b96b8f242 Use target hostnames and restore lk2nd bootloader reboot 2026-11-09 23:44:44 +02:00
Luxferre 1c011b360a Finalize verified 2720 Flip release source and untrack image outputs 2026-11-09 23:04:13 +02:00
Luxferre fb091749f0 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.
2026-11-08 10:36:45 +02:00
Luxferre 3543556735 Fix xkopher link focus and unlock clock; battery longevity pass
Map xkopher link focus through wrapped display rows and reset horizontal scroll in no-wrap mode. Refresh the status bar clock on unlock and from dmenu before republishing root WM_NAME. Re-analysis found two low-risk wins: force lz4 for the active zram swap and disable proactive compaction. Rebuild dmenu.so and smallweb.so, update guards and docs, redeploy live, and rebuild the image.
2026-11-08 08:45:53 +02:00
Luxferre 85c6a7b886 Add Config -> Sync net time manual trigger
The reflashed image starts chronyd at ~27 s, before NetworkManager installs
a usable resolv.conf, so pool.ntp.org stays unresolved and minpoll 12 would
wait up to 4096 s. Wi-Fi came up at ~30 s but the clock was only stepped at
~112 s, when usb0 emitted another dispatcher event.

- Config -> Sync net time in the built-in dmenu Config menu runs
  bananarchy-sync-net-time.sh, forces a burst via bananarchy-time-sync.sh
  sync and shows a desktop notification with the UTC date or a failure.
- New sync mode reports success/failure and exit status; resolved() now
  requires at least one known source, DNS waits run before the flock, and
  network-up/force/sync get 8 retries so a slow boot retry cannot swallow
  network-up events.
- Rebuilt dmenu.so from src/sxmo-dmenu/dmenu.c into prebuilt/ and overlay/;
  apply-bananarchy-overlay.sh keeps the wrapper root-owned and executable;
  check-rebuild.sh guards the menu entry, wrapper and sync mode.
- Rebuilt and verified images/bananarchy-nokia-argon.img (all new files
  byte-identical to overlay, boot.img unchanged, 27 initramfs modules).

Live verification on the reflashed phone: helper sync as the X session user
prints "Network time synced: 2026-11-07 20:17:43 UTC", the wrapper posts a
notification, a DNS-down sync fails clearly after 16 s, restoring DNS syncs
again, and the rebuilt dmenu daemon was reloaded with the new Config item.
2026-11-07 22:22:02 +02:00
Bantam da68bb8c60 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).
2026-11-07 18:16:26 +02:00
Bantam 22d629f59b Fix idle-blank wake race and PIN-locked SIM DSDS provisioning
Two issues reported after the recovery image booted:

1. Pressing the power key turned the screen on and immediately back off.
   Root cause: U1 used sxmo_idle.sh + xprintidle, but dwm consumes keypad
   events at the evdev level before X sees them, so the X idle counter never
   reliably reset and the blank/resume commands raced. Replaced it with a
   dwm-native idle timer (src/sxmo-dwm/dwm.c): last_input_ms is updated from
   evdev and X key events, poll() is armed with the SXMO_UNLOCK_IDLE_TIME
   deadline (default 60 s), bananarchy-idle-blank.sh off fires once, and
   wake_phone() clears idle_blanked and resets the timer on the next real key.
   sxmo.noidle still disables it; idle_locker was removed from
   sxmo_hook_unlock.sh. Added a defensive wake-grace guard to
   bananarchy-idle-blank.sh and a /tmp/bananarchy_last_wake timestamp in
   sxmo_wm.sh display on so an already-flashed device is fixed too.

2. A PIN on one SIM prevented the other SIM from registering. provision_slot()
   tried to bind the preferred slot to primary-gw-provisioning even when its
   app was pin1/puk1 or PIN1 state enabled-not-verified, so no session came up
   and neither subscription registered. It now detects a locked preferred slot
   and falls back to the other ready slot for the primary GW; verify-pin/xmodem
   re-run boot after unlock and provision both slots normally.

Verified on the connected phone: all three deployed scripts pass sh -n, all
5 embedded Python heredocs parse, SIM status still reports both slots
registered, and off -> on -> immediate off leaves the screen on (grace guard).
Rebuilt dwm/plugins 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: CHANGELOG.md, MANUAL.md, BATTERY-OPTIMIZATION-ANALYSIS.md (section 12).
2026-11-07 17:56:55 +02:00
Bantam ad3461babf Measurement-corrected battery optimization pass (DSDS + Wi-Fi)
Re-analyzed the running nokia-argon (a1105, 43 h uptime, DSDS + Wi-Fi on) and
implemented the corrected kernel/userspace optimization list. No sleep state
existed at all (/sys/power/state was 0 bytes) and cpuinfo_transition_latency
was UINT_MAX, while the CPU cores were already ~98% power-collapsed.

Kernel (K1-K14)
- Enable CONFIG_SUSPEND / SUSPEND_FREEZER / PM_WAKELOCKS / PM_AUTOSLEEP and
  build the zImage from the tuned config; ship it as overlay/rootfs/boot/vmlinuz
  plus config and System.map. Add wakeup-source to the WCNSS pronto remoteproc.
- Add clock-latency-ns to cpu-opp-table in all 5 device trees (fixes
  CPUFREQ_ETERNAL at its source instead of a userspace rate_limit_us override).
- New patch 0006: wcn36xx keep-alive 30s->120s, listen_interval=3, VM-BMS
  sample interval 10s->30s, power_supply_changed() only on real capacity
  changes, GPU devfreq polling_ms 50->100.
- Retune the config for idle (HZ=100, PREEMPT_VOLUNTARY, TEO cpuidle governor,
  no ftrace/perf/kprobes/BPF-JIT-always-on/debug options, no serial console,
  DRM_FBDEV_OVERALLOC=0, lz4 zram, ENERGY_MODEL) and drop earlycon /
  console=ttyMSM0 from every kernel cmdline.
- net.ipv6.conf.default.disable_ipv6=1 to stop ND/MLD multicast on new
  interfaces; keep NETFILTER/IPV6/CGROUPS and FRAMEBUFFER_CONSOLE for
  VPN/tethering, elogind and plymouth.

Userspace (U1-U14)
- Idle blanking without the passcode locker (bananarchy-idle-blank.sh +
  idle_locker resume hook, SXMO_UNLOCK_IDLE_TIME=60, sxmo.noidle opts out).
- Guarded deep standby (bananarchy-suspend.sh / -deep-standby.sh /
  sxmo_autosuspend.sh / sxmo_suspend.sh), AllowSuspend=yes, doas rule, no
  infinite wakelock, no sxmo.nosuspend. Shipped disabled via
  /etc/bananarchy-no-deep-standby until the new kernel is boot-tested; freeze
  is preferred, mem is opt-in.
- statusbar_periodics 60s->300s, no mmcli/nmcli/rfkill polls, xsetroot only on
  change; battery udev rule filtered and no 2 s recheck fork.
- On-demand QMI DPM port, longer DSDS/modemmonitor backoffs, chrony long polls,
  NM wifi.scan-interval=600, bluetooth AutoEnable=false, tmpfs on /tmp,
  zero-log superd, GPU devfreq governor on screen-off, longer SIP/Tox timers.
- Fix the cosmetic wpa_supplicant yesno typo; withdraw the disproven duplicate
  wpa_supplicant and soundmonitor 5 s loop items.

Rebuilt images/bananarchy-nokia-argon.img with --mkinitfs: boot.img contains
the new zImage + DTB byte-for-byte and no serial-console cmdline. Deployed the
userspace overlay to the connected phone and verified shell/Python syntax, the
idle-blank round trip, the statusbar hook and the deep-standby guard.
check-rebuild.sh and sync-prebuilt-overlay.sh --check both pass.

Docs: BATTERY-OPTIMIZATION-ANALYSIS.md (measurement-corrected, with
implementation status), CHANGELOG.md, MANUAL.md, README.md, AGENTS.md.
2026-11-07 17:03:12 +02:00
Luxferre 16df110b0b Fix full-length SMS rendering and Unicode-aware segment counting
The expanded xsms conversation view handed the whole message body to
pango_xft_render_layout() as one multiline layout; on the target Pango/Xft
stack that call only paints the first line, so long concatenated/UCS-2
messages (e.g. the Ukrainian 'Мелорінг дарує хіти!' example) stopped right
before the first non-ASCII character. Verified on the connected phone with an
instrumented sms.so (530-byte body, 13 measured lines, one painted line) and
a standalone ARM reproducer; the QMI WMS reassembly and sms.txt parser are
correct.

- Draw message bodies and long drafts line by line via a shared
  renderLayoutLines() helper with an Xft clip, so nothing overflows the
  bubble or softkey bar; use the same layout width for measuring and drawing.
- Make the selected message scrollable with Up/Down (one line per press plus
  a right-edge scrollbar), stepping to the previous/next message only at the
  top/bottom of an overflowing message.
- Replace the byte-based compose counter with smsTextMetrics(), which decodes
  UTF-8, detects the GSM 7-bit alphabet/extension table and reports GSM-7
  septets (160/153) or UCS-2 UTF-16 units (70/67) with the right part count.
- Strip [SIM n] tags from QMI/local SMS log headers and stop writing them in
  the offline-send fallback; log units instead of bytes.
- Add a check-rebuild.sh guard against reintroducing the bulk layout render.
- Rebuild prebuilt/overlay sms.so and engmenu.so, sync docs, and regenerate
  images/bananarchy-nokia-argon.img.
2026-11-05 17:34:21 +02:00
Luxferre c9c870c3bb Fix instant QMI call hangup, eliminate post-call dialer/callscreen popups and desktop clock flicker 2026-11-05 09:51:53 +02:00
Luxferre 1d71bc81d8 Fix lid wake blanking, passcode lag, idle drain, zero-log privacy default, and replace Conky with native dwm clock 2026-11-05 08:07:10 +02:00
Luxferre 0c352f0a10 Fix background call hangup and end calls on screen lock or lid close 2026-11-04 17:59:19 +02:00
Luxferre c7cdde6734 Optimize Bluetooth volume control latency and fix WirePlumber startup race 2026-11-04 16:39:05 +02:00
Luxferre dbd8cef2e1 Prevent duplicate xlocker activation during X11 session startup 2026-11-04 15:58:34 +02:00
Luxferre b8dea31b59 Fix A2DP Bluetooth audio routing, stream migration, hotplug monitoring, and q6voice teardown 2026-11-04 15:42:58 +02:00
Luxferre b2ade2dc42 bluetooth: add QDSP6 internal BT-SCO audio routing, fix A2DP/HSP-HFP profile handling, and add in-call Bluetooth route 2026-11-04 13:34:18 +02:00
Luxferre 02ce3ab1f4 bluetooth: fix BLE/HID keyboard & mouse pairing, auto-bypass T9 on external keyboard, and show mouse cursor 2026-11-03 20:24:54 +02:00
Luxferre b9e7c6847b Fix msm8916-wcd-digital ASoC DAPM teardown crash after notification audio 2026-11-03 13:40:42 +02:00
Luxferre 06d991d4fa power: fix LBC charger FSM, BMS-VM fuel gauge, WCN36xx BMPS, WCD clock gating, and battery UI 2026-11-03 12:44:17 +02:00
Luxferre ebdb0f8ee2 Fix bulls_cows.yab UI layout/scrolling and index engmenu items 1 to 7 2026-11-03 10:05:34 +02:00
Luxferre 6d31efd796 Port Wallace Toolbox and Project Lycan Qualcomm features to engmenu 2026-11-03 09:55:18 +02:00
Luxferre 49830e137d Remove example client.ovpn from gs-warp and add automatic rootfs/prebuilt dependency checks to build scripts 2026-11-02 07:58:28 +02:00
Luxferre 2030201539 Add Privacy Center (Tor, GS-Warp, OpenVPN, GSocket, WireGuard), tunneled DNS, and stage a1105 (vendetta) changelog 2026-11-01 20:58:18 +02:00
Luxferre 471916424e Add Bluetooth audio/HID/discoverability/alias support, fix SD card hotplug & caller ID matching, and expand ReMEdy J2ME JSRs + 64MB GC 2026-11-01 16:18:04 +02:00
Luxferre 456d3fbc42 Optimize kernel-to-userspace battery life across CAMSS, SPI runtime PM, dwm, NeoUI, and plugins 2026-11-01 11:56:28 +02:00
Luxferre f112b6ae72 Preempt X11 keyboard grabs and window stacking when lockscreen is active 2026-11-01 10:39:40 +02:00
Luxferre 83dd79fe76 sip: integrate PJSIP pjmedia G.722 and G.711 codecs and direct aplay ringbuffer playout 2026-10-31 20:32:00 +02:00
Luxferre 0af39d9fa0 Fix global Power menu key handling, SIP G.711 audio routing, Webarchy audio playback, and ReMEdy Call menu key 2026-10-31 19:39:28 +02:00
Luxferre d7335b5ebe Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts 2026-10-31 17:34:43 +02:00
Luxferre 61768fa88e Add ZRTP/SRTP encryption, direct accountless calling, and alphanumeric input fix to SIP client 2026-10-31 13:38:44 +02:00
Luxferre 62ac46e498 Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI 2026-10-30 19:28:31 +02:00
Luxferre 9c28fa1e4c Add RTTTL/eMelody/iMelody ringtones and separate notification/SMS sound config 2026-10-30 12:11:16 +02:00
Luxferre 8df412085b Activate passcode lockscreen immediately upon GUI startup on boot 2026-10-30 09:34:09 +02:00
Luxferre 35d90fb6f7 Add GPS reception test utility and OpenStreetMap GPS navigator plugin 2026-10-29 22:10:29 +02:00
Luxferre be9ec9af0b Add native NeoUI SIP, Email, IRCv3, Tox, and Kopher SmallWeb plugins 2026-10-29 22:10:20 +02:00
Luxferre 0656042f7f Implement passcode-based fullscreen phone locker (locker.so / xlocker) 2026-10-29 21:31:00 +02:00
Luxferre 32d5d2f2b4 Implement SD card autodetection, automount, and GUI/dmenu mounter
- Enable GPIO 38 active-low card detect (cd-gpios) with bias-pull-up on
  sdhci@7864000 across all MSM8905/MSM8909 device trees and DTBs
- Add sxmo_sdcard.sh and 88-bananarchy-sdcard.rules udev rules for
  automatic mounting at /media/sdcard on insertion and cleanup on
  removal
- Integrate SD card mount, unmount/eject, and navigation into the GUI
  File Manager (files.so) and built-in dmenu SD Card menu (@menu:sdcard)
2026-10-29 21:02:51 +02:00
Luxferre 370f8b085c Implement headphone autodetection, earpiece routing, and linear volume controls
- Fix msm8916-wcd ALSA UCM2 configs (Earpiece.conf, Speaker.conf,
  Headphones.conf, PrimaryMic.conf, HeadsetMic.conf) so Speaker,
  Earpiece, and Headphones outputs and Mic1/Headset inputs are always
  available and mutually exclusive without invalid mixer controls
- Add event-driven wired headphone/headset jack detection and automatic
  audio routing in sxmo_soundmonitor.sh via evtest on the msm8916
  Headset Jack input device
- Make Earpiece, Speaker, and Headphones first-class routable output
  devices across sxmo_audio.sh, sxmo_modemaudio.sh, xdrawer, dmenu, and
  callscreen
- Make volume controls strictly linear across all channels by keeping
  PipeWire software gain at unity (100%) when unmuted and linearly
  mapping 0-100% to hardware digital volume registers (RX3 for Speaker,
  RX1 for Earpiece, RX1+RX2 for Headphones, TX1+ADC for Microphone)
2026-10-29 20:42:26 +02:00
Luxferre 66769d7c2e Add ReMEdy native 240x320 J2ME (MIDP 2.0 / CLDC 1.1 / M3G 3D) emulator and file manager integration 2026-10-28 12:41:00 +02:00
Luxferre 4aa087f372 modem: prevent duplicate SIM PIN entry dialog in dual-SIM mode 2026-10-28 08:32:05 +02:00
Luxferre 2e2adcc7f2 Persist screen brightness, enable universal evdev key/lid wake, and add *+# screenshot combo 2026-10-27 22:24:39 +02:00
Luxferre 7927bacb67 modem, callscreen, ring: fix DSDS incoming ring hangup/volume and add Primary/Secondary GW SIM swap UI 2026-10-27 13:02:14 +02:00
Luxferre 9a079e1068 Fix dual-SIM operator/MSISDN parsing, secondary SIM USSD, and callscreen auto-close 2026-10-27 12:01:04 +02:00
Luxferre 46f1255905 Add Dual-SIM Dual Standby (DSDS), outgoing SIM selection, and instant charging icon update 2026-10-27 11:36:00 +02:00
Luxferre 68cf9c515b Remove unnecessary background services and polling loops to improve battery life 2026-10-27 08:08:05 +02:00
Luxferre 726500085a Add NeoNet Yabasic networking FFI library, fix fcitx5 service and WM context menus, install yabasic-doc and mandoc 2026-10-27 07:39:07 +02:00
Luxferre c8b90640fb Remove Toggle Bar item from Config menu 2026-10-26 19:15:20 +02:00
Luxferre c137feee0e Add NeoUI 240x320 UI SDK, migrate all GUI plugins, add Yabasic FFI wrapper and fix camera rotation 2026-10-26 19:11:58 +02:00
Luxferre 1f9138f0c6 fix(input): add sliding-window multi-tap candidate bar and input tail-scrolling across plugins and fcitx5-t9 2026-10-26 17:37:53 +02:00
Luxferre 73ba2d5c22 feat(xfiles): add Yabasic .yab terminal execution and integrated GUI text editor 2026-10-26 16:08:35 +02:00