Commit Graph
93 Commits
Author SHA1 Message Date
Luxferre d7992904bf Bring up nokia-sparkler SMP/cpufreq/lk2nd/cam/haptics, fix timer and EDL USB timeout
- Add 0013 early-SCM 4-core SMP + cpufreq kernel patch and clock-frequency DT nodes
- Complete nokia-sparkler lk2nd port, boot/X11 session startup, 180-deg cached camera, and 157 Hz haptic audio
- Replace root-only timer backend with permissionless sxmo_timer.sh and keypad/hook cancellation
- Fix EDL Firehose rawmode ACK, USB active-config preservation, *+# hint, and 30 s default USB timeout
- Sync a1120 (cocojamboo) prebuilts, docs, tests, and verified checksums in check-rebuild.sh
2026-11-16 11:45:38 +02:00
Luxferre ab53423e33 Port Nokia 800 Tough (nokia-coconut), fix microSD detection, and stage upcoming a1120 (cocojamboo) build
- Migrate nokia-tough to canonical nokia-coconut while keeping CLI aliases, add layered bootloader/lk2nd/nokia-coconut.patch, bootfs/bootimg validators, and offline scripts/inspect-stock-msm8905-dump.py

- Complete nokia-coconut Stage 2 hardware bring-up: wire 6-column 22-key keypad (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1), gpio98 KEY_POWER, and pon@800:resin KEY_DOWN (0x6c); split leds-msm8905-torch into GPIO_13 white:torch (dedicated top-edge flashlight) and GPIO_32 camera:flash (rear camera flash for camera.so and bananarchy-photo)

- Restore sdhci@7864000 non-removable across all six DTS/DTB targets, remove unwired gpio38 cd-gpios/sdc2-cd-* states, and harden sxmo_sdcard.sh under flock

- Register upcoming build a1120 (cocojamboo) in scripts/version.sh, scripts/check-rebuild.sh, CHANGELOG.md, AGENTS.md, README.md, and MANUAL.md with verified hashes across nokia-argon, nokia-beatles, and nokia-coconut
2026-11-15 18:00:10 +02:00
Luxferre 8b466ef8ae Fix 2720 closed-flip call wakeups/preservation, live timezone sync, and Power menu
- Default CPU_RPM_SLEEP=0, CPU_L2_SLEEP=0, and MODEM_DRX_MODE=0 across bananarchy-power-policy.conf, bananarchy-power-policy.sh, bananarchy-display-power-sync, and kernel patch 0010 so closed-flip incoming calls wake APSS promptly via smd-edge without AT port contention.
- Serialize sxmo_modem.sh incoming/finished call checks, expire stale /tmp/sxmo_hangup_requested flags, re-verify live ModemManager call state before ringing/raising callscreen, guard idle/flip-open HANGUP_CLOSE paths in locker.so, callscreen.so, bananarchy-idle-lock.sh, and bananarchy-lid, preserve calls on flip-open (UNGRAB/RAISE), and add closed-flip cover call controls (bananarchy-cover-idle, bananarchy-cover-event.sh, bananarchy-volume-keys).
- Propagate live network/manual timezone updates across statusbar, locker.so, bananarchy-cover-idle, bananarchy-dsds, callscreen.so, and bananarchy-run-aligned without reboot (scripts/test-time-timezone-sync.py), remove non-functional Logout from the Power menu, ignore post-call sxmo_calls markers, add scripts/build-dwm-plugins.sh, and update a1114 (carbonara) hashes and docs.
2026-11-14 10:57:29 +02:00
Luxferre e42024e90d Eliminate dual-target idle wakeups and stage upcoming a1114 (carbonara) build
- Replace continuous polling in bananarchy-lid and bananarchy-volume-keys with /dev/input inotify watching and IRQ-driven poll(..., -1) steady state, and sync CPU/schedutil/GPU power knobs on flip transitions

- Grant video-group write permissions to Adreno 304 devfreq governor, sync GPU powersave/simple_ondemand across bananarchy-display-power-sync and locker.so, and restore schedutil rate_limit_us on forced transitions

- Trim per-minute statusbar clock forks, skip unchanged ext4 brightness rewrites and no-op sxmo_autosuspend spawns on blanking, and make bananarchy-bt-obex fully event-driven via inotify and blocking select

- Register upcoming build a1114 (carbonara) in version.sh, check-rebuild.sh, CHANGELOG.md, AGENTS.md, and BATTERY-OPTIMIZATION-ANALYSIS.md while keeping a1111 (lennon) as the current public release
2026-11-12 12:09:46 +02:00
Luxferre 83c8db10f1 Release a1111 (lennon): isolate nokia-argon slider from 2720 Flip cover stack
- Write /usr/share/bananarchy/lid-profile per target in apply-bananarchy-overlay.sh (slider on nokia-argon, flip on nokia-beatles, none elsewhere), disable flip runlevel services, cover udev/config, and mux module loads on non-flip builds, and exit 0 immediately in flip daemons/init scripts when lid-profile != flip
- Guard startup Escape grab cleanup when locked and gate lid-state checks in display-power-sync, locker.so, and callscreen.so on lid-profile == flip so nokia-argon keeps pure a1108 sliding-lid behaviour
- Ship active-high shared cover backlight (kernel_backlight_invert = 0), active-black internal panel isolation (kernel_internal_sleep = 0), pixel-centered 240x240 cover UI, SW_LID hall sync, and shared Screen blank timeout on nokia-beatles
- Pin verified a1111 (lennon) image hashes for both nokia-argon and nokia-beatles and synchronize docs and host tests
2026-11-11 14:20:42 +02:00
Luxferre 2198ba16b3 Shorten Power menu bootloader label to fit screen
Change Reboot to bootloader to Reboot to loader in dmenu.so, appmenu and context menu. Rebuild the ARM dmenu plugin, sync prebuilt/overlay artifacts, strengthen check-rebuild guards, and synchronize docs. Deployed to the live phone and restarted the resident dmenu plugin.
2026-11-10 18:01:01 +02:00
Luxferre a50c01b416 Fix GPS modem selection and add a GPS-only time source 2026-11-10 13:18:14 +02:00
Luxferre 6a6222c198 Fix Bluetooth discovery so scanned devices are listed 2026-11-10 12:58:51 +02:00
Luxferre 77d95c715c Fix Webarchy WebKit renderer on the 2720 Flip 2026-11-10 12:43:41 +02:00
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 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