Commit Graph
86 Commits
Author SHA1 Message Date
Luxferre 03bc80f267 Publish a1120 (cocojamboo) release across all four targets in docs 2026-11-20 08:30:46 +02:00
Luxferre 63ef9299fc Fix DNS resolution across Wi-Fi, cellular, USB tethering, and VPNs
- Add NetworkManager rc-manager=file with dnsmasq caching and baseline /etc/resolv.conf, isolate usb0 routes/DNS in USB_Networking.nmconnection, enable loopback in boot runlevel, and guard 90-nm-cloud-setup.sh for OpenRC.
- Rewrite 50-dns-filter.sh to handle dhcp4/dhcp6/dns events, drop BusyBox-invalid logger -i and blocking gateway sleeps, gate IPv6 AAAA filtering on global unicast addresses and accept_ra, and fall back to 1.1.1.1/9.9.9.9 when no upstream DNS is advertised.
- Fix bananarchy-privacy-ctl musl parallel-query leaks (omit 127.0.0.1 in VPN mode, add sync-dns recovery, replace pkill/pgrep), add usb-tether DNS DNAT, rebuild and verify all four a1120 target images and release zips, and add scripts/test-dns-resolution.py.
2026-11-18 13:12:11 +02:00
Luxferre 6cedcf980c Remove lk2nd screen version tag, make LK2ND_VERSION neutral, and refresh archives
- Remove LK2ND_VERSION from lk2nd/device/menu/menu.c (display_fastboot_menu and display_default_image_on_screen) in bootloader/lk2nd/nokia-beatles.patch so the BANANARCHY LINUX boot splash renders intact and boot/Fastboot-recovery screens carry no OS version tag.

- Replace -a1109-r3 / -a1114-r1 / -a1120-r1 suffixes in scripts/build-lk2nd-{beatles,coconut,sparkler}.sh with OS-version-neutral bananarchy-<target>{,-diag,-display} tags and enforce this in scripts/check-lk2nd-{beatles,coconut,sparkler}.py and scripts/check-rebuild.sh.

- Rebuild all 9 lk2nd images and refresh the a1120 (cocojamboo) display lk2nd and archive SHA-256 hashes in scripts/check-rebuild.sh, CHANGELOG.md, bootloader/lk2nd/README.md, and AGENTS.md.
2026-11-18 08:55:44 +02:00
Luxferre 1e7077e314 Fix bluetoothd CPU busy-loops, cache BT state, and refresh a1120 images
- Add /etc/conf.d/bluetooth (supervise-daemon, retry=TERM/3/KILL/1, --noplugin=hfp,bap,bass,mcp,vcp,micp,csip,ccp,tmap,gmap,asha,midi,neard) and drop gateway UUIDs (111f/1112/110a) from main.conf ReconnectUUIDs so Experimental = true keeps PreferredBearer without BlueZ hfp-hf/ATT EOF GMainLoop spins.

- Set duplicate-data off in bananarchy-bt-scan.sh and update sxmo_bluetoothtoggle.sh to disconnect, btmgmt power off, and clean state files on disable so adapter_stop() never busy-loops on dual-bearer links.

- Add single-shot BlueZ ObjectManager state caching (bt_state.tsv, dump-state, CTRL_READY_FILE, EPHEMERAL_DEV_PROPS filter) in bananarchy-bt-obex and consume it in networks.so instead of per-device bluetoothctl refresh storms.

- Extend Bluetooth host tests and check-rebuild.sh, update docs, and rebuild/pin a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
2026-11-18 06:34:13 +02:00
Luxferre 1e1fe7c317 Fix Bluetooth KeyboardDisplay pairing agent, MGMT flags, and refresh a1120 images
- Switch bananarchy-bt-obex Agent1 from NoInputNoOutput to KeyboardDisplay with /run/bananarchy/bt-obex/pair_{prompt,decision}.tsv and op_done.tsv IPC, auto-confirming Classic Audio headsets while prompting user confirmation, PIN, passkey, or keyboard display codes.
- Enforce bredr on, ssp on, linksec on, bondable on, advertising off, class 2 3, and le on in bananarchy-bt-le-enable.sh alongside PairableTimeout = 0 in main.conf (keeping DiscoverableTimeout = 60 hidden by default) and boot hook sync in sxmo_hook_start.sh.
- Fix root/user daemon UID collisions and sticky-/tmp status/PID writes, separate phones from Classic Audio headsets, increase Pair timeout to 50 s, and add non-blocking --async-ui pairing/connect plus NetModal::BtPairingPrompt in networks.so.
- Extend scripts/test-bluetooth-obex.py, scripts/test-bluetooth-headset.py, scripts/check-rebuild.sh, docs, and rebuild/pin a1120 (cocojamboo) images and archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
2026-11-17 11:30:42 +02:00
Luxferre 36a5f8cb8a Fix Bluetooth 5.x/6.x headsets, Android OBEX prompts, and refresh a1120 images
- Scope WirePlumber 50-bluetooth.conf roles to [ a2dp_sink hsp_hs hfp_hf ], lock HFP to 8 kHz CVSD for QDSP6 INTERNAL_BT_SCO, enable dummy AVRCP player, and set LDAC ABR quality.
- Select BR/EDR bearer and ConnectProfile fallback for Classic Audio headsets while preserving LE bearer for HOGP devices, forward AVRCP media keys to music.so, bound discoverability to 60 s, fix SCO keepalive teardown/readiness and ATA call state sync, and suppress nokia-sparkler speaker haptic audio during BT SCO.
- Advertise Smartphone Class of Device (0x5a020c / btmgmt class 2 3), handle OBEX over both L2CAP SOCK_SEQPACKET and RFCOMM SOCK_STREAM via ObexPacketReader, and add NeoUI incoming file Accept/Reject dialog and configurable target folder picker in networks.so.
- Add scripts/test-bluetooth-headset.py and scripts/test-bluetooth-obex.py, and rebuild/pin verified a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
2026-11-17 10:33:09 +02:00
Luxferre f6b42ff604 Port Quagr NeoUI pager plugin, opt-in receiver daemon, and cover alerts
- Port Quagr (<=30-byte SHA-256 + XOR + checksum) as C++20 NeoUI DWM plugin quagr.so (xquagr / quagr) across all targets with 3-tab UI (Receive, Send, Config) and independent Rx/Tx Passphrase or Raw 64-Hex key support.
- Enforce strict receiver autostart gating in quagr_plugin_init and --preload (starts only when autostart_rx=1 and a valid Rx key/passphrase is set) with atomic $SXMO_NOTIFDIR system notification emission and duress-mode blocking.
- Integrate QUAGR/QUAGR_CLEAR full-message wrapped rendering, extended ASCII 5x7 glyphs, persistent hold, and any-side-button dismissal into bananarchy-cover-idle and bananarchy-cover-event.sh for nokia-beatles.
- Rebuild and pin a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler, and add scripts/test-quagr.py.
2026-11-16 17:36:05 +02:00
Luxferre 0d8047ddfe Calibrate volume-independent 157 Hz haptic vibration on nokia-sparkler
- Compensate PipeWire softVolumes and RX3 Digital Volume via libpulse FLOAT_LE PCM
- Tune L1/L2/L3 reference amplitudes to 1950/2550/3300 at HAPTIC_REF_RX3_VOL=84
- Fix root HOME lookup, muted-sink bypass, build-dwm-plugins sync, and refresh a1120 image checksums
2026-11-16 12:54:45 +02:00
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 fc5c4282f5 Implement 0012 72h standby battery optimizations and initramfs depmod hook
- Add patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch, rebuild affected kernel/module artifacts and all six device DTS/DTB files (msm8916-wcd-analog s2/bias gating, wcn36xx offload_sync_work and healthy-RSSI screen_off_offload scan short-circuit, pm8916_bms_vm screen_off FORCE_S3 OCV mode, panel-mipi-dbi dc/reset low on blank, spi-qup runtime PM sleep pinctrl, PM8909 l1/l4 LDO seeding, and sdhci-msm vmmc/vqmmc set_load with regulator-allow-set-load on l8/l12), and switch msm8905-cam from direct APSS SPMI LDO6/LDO17 writes to RPM regulator consumer voting.

- Update standby power policy and compiled C daemons (WIFI_LISTEN_INTERVAL=8, WIFI_STANDBY_RAT=gsm with CS verification and fallback, 10-bananarchy-dpm.sh wifi-up/unpark-rat dispatch, 25 s boot QRTR wait and QMI DMS online recovery, pm8916_bms_vm screen_off sync, bananarchy-run-aligned dark-screen skip, bananarchy-dsds --sig-hysteresis, bananarchy-cover-idle wake_blank_timeout = 8, and scripts/test-standby-power-policy.py).

- Add overlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.sh to run depmod -b per staged initramfs cpio archive and eliminate Stage 2 udevd missing-module boot console errors, enforce .ko.zst-only module installs in apply-bananarchy-overlay.sh, stage Alpine 3.24 /usr/lib/{libz,libcrypto}.so* in rebuild-image.sh chroot with failure cleanup, and add initramfs cpio guards plus verified image hashes in scripts/check-rebuild.sh.

- Document all changes under Unreleased in CHANGELOG.md and synchronize AGENTS.md, MANUAL.md, and BATTERY-OPTIMIZATION-ANALYSIS.md.
2026-11-15 14:46:50 +02:00
Luxferre 9700949b28 Publish a1114 (carbonara) release notes and download links
- Promote a1114 (carbonara) as the current public release across CHANGELOG.md, README.md, MANUAL.md, AGENTS.md, and BATTERY-OPTIMIZATION-ANALYSIS.md
- Point release archive links to bananarchy-nokia-argon-a1114-carbonara.zip and bananarchy-nokia-beatles-a1114-carbonara.zip
2026-11-14 11:16:27 +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 2ae4ef34a2 Implement 0010 RPM/L2/WCD/UART deep-standby, Adreno 304 ICC/SMMU fixes, and C11 autostart daemons
- patches/kernel/0010-msm8909-rpm-lpm-bimc-wcd-ldo-uart.patch and device DTS/DTB files (nokia-{argon,beatles,beatles-cover,coconut,sparkler,leo}): vMPM APSS RPM sleep, L2 SAW2 collapse, WCD-digital runtime PM, PM8909 LDO seeding, ttyMSM0 disable, dynamic msm_gpu gfx-mem BIMC interconnect scaling (mas_oxili), and qcom_iommu context restore + atomic TLB flush on resume.
- Replace Python/shell autostart loops with compiled C11 ARM ELF daemons (bananarchy-dsds, bananarchy-modemmonitor, bananarchy-soundmonitor, bananarchy-notifmonitor, bananarchy-run-aligned, bananarchy-session-loop) plus scripts/test-dsds-daemon.py.
- Update scripts/check-rebuild.sh, CHANGELOG.md, BATTERY-OPTIMIZATION-ANALYSIS.md, MANUAL.md, README.md, and AGENTS.md with verified a1114 (carbonara) image/archive pins and guards.
2026-11-13 18:23:14 +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 ed04da3e23 Document official nokia-beatles release support and a1111 archive workflow
- Mark Nokia 2720 Flip (nokia-beatles) alongside Nokia 8110 4G (nokia-argon) as a verified a1111 (lennon) public release in README.md and MANUAL.md
- Document cover display hardware, outer side-key wake controls, release archive extraction, and dual-target flashing/packaging commands in README.md, MANUAL.md, and AGENTS.md
2026-11-11 15:06:49 +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 7a2b965ce3 Stop reboot backlight flicker with force-only PWM updates 2026-11-11 08:23:12 +02:00
Luxferre d61f2848db Handle active-low cover backlight and restore internal panel 2026-11-11 07:57:38 +02:00
Luxferre b389120328 Fix 2720 Flip cover init, shared backlight and flip lock 2026-11-10 23:20:13 +02:00
Luxferre c939687138 Drive the 2720 Flip cover panel through the kernel panel driver
Autonomous testing (clean reboot, kernel SPI statistics, kHz GPIO sweeps,
CS0/CS1 register reads, battery/ALS/hwmon checks, host webcam differential
imaging) showed all twelve userspace PROBE cases delivered complete,
error-free SPI traffic while the cover stayed dark. The QUP5 pinctrl group
has one CS line and gpio110 (the kernel panel-mipi-dbi-spi driver's D/C) is
shared behind the gpio13 bus switch, so no userspace D/C framing can work.

backend = kernel is now the default. While the flip is closed the compiled
cover daemon claims only gpio13 (mux) and gpio23 (cover reset), switches the
bus to the cover and forces a DPMS off/on cycle through
bananarchy-cover-dpms.sh reinit; mipi_dbi_enable() then replays the kernel's
firmware init sequence onto the external panel with CS0 and gpio110 D/C. The
cover UI is rendered as a 240x240 XR24 damage rect at the top of /dev/fb0
using the fbdev stride, which makes mipi_dbi set a 240x240 address window.
The main backlight and keypad stay at 0, so only the outer panel can light.
On open the mux returns to the internal panel and the lid daemon requests a
reinit after an 80 ms settle.

Live verification: closed -> backend=kernel-dark (DPMS off); BUTTON ->
backend=kernel, dpms=On, gpio13 high, 172800 non-zero bytes of cover UI in
/dev/fb0, kernel spi0.0 +460899 bytes and userspace spi0.1 +0, zero SPI
errors; BLANK -> kernel-dark/DPMS off; LID OPEN -> mux=free, gpio13 low.
Main backlight and keypad stayed at 0 throughout.

All spidev/8-bit/9-bit paths, PROBE, bananarchy-cover-probe.sh and
backend = fb|spidev|none remain as runtime rollback paths. New host test
scripts/test-cover-kernel.py plus check-rebuild.sh guards.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
ce0542321990a8cff8ab122c0a47c0684fcc7e3d5f6fc97e74b3b0ea4c4826b5 in
check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms the
rebuilt daemons, helper and config byte-for-byte, and the bootfs sync, boot
image check, artifact sync, host tests and rebuild preflight all pass.

Limitation: Xorg shares /dev/fb0, so its repaints can still overwrite part
of the cover UI; a dedicated override-redirect cover compositor is next.
Physical illumination is still unverified from the host.
2026-11-10 21:54:53 +02:00
Luxferre 5f8b7c88ac Fix the missing cover-panel reaction with a 9-bit panel path and sign-off probe
Live diagnosis with the flip physically closed showed the wake chain is
intact: bananarchy-coverctl BUTTON/WAKE, the lid gate and sxmo_state.sh set
unlock all reached backend=spidev visible=1 mux=closed, with the daemon
holding /dev/spidev0.1, the gpiochip and its line handles. The outer panel
itself never reacted. Register reads over SPI return zeros (write-only
panels), gpio21 stays static, and a reversible panel-mipi-dbi-spi/spidev
rebind on spi0.0 showed the shared gpio110 D/C path is also unreadable, so
the missing piece is the panel framing: the KaiOS downstream DTS labels
gpio21 TE, not D/C, and Qualcomm MDSS SPI carries D/C as the ninth bit.

bananarchy-cover-idle now defaults to 9-bit MIPI DBI: it releases gpio21,
claims only the reset line, and frames every command and pixel as a
little-endian 9-bit word with D/C in bit 8. spi_word_bits = 8 keeps the old
D/C-GPIO path. A PROBE command walks twelve combinations of word width,
gpio13 mux level, reset/D-C polarity and 25 MHz / 5 MHz clock, re-initialising
the panel and drawing TEST bars; STATUS reports bits= and probe=case N/12.
bananarchy-cover-probe.sh drives all twelve cases with a three-second hold so
the working wiring can be written back to cover-display.conf.

wanted_device() in common.h now also matches KEY_POWER, so the pm8941_pwrkey
device (KEY_POWER only) is no longer invisible to bananarchy-volume-keys and
all three outer buttons can produce a cover wake.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
57d140e9cdf05631a6620b639d143350b9984b2170592fb927c93bfb18f67a2b in
check-rebuild.sh. e2fsck -fn passed on both partitions, debugfs confirms
seven updated rootfs files byte-for-byte, and the bootfs sync, boot image
check, artifact sync, host tests and rebuild preflight all pass.

Eyes-on confirmation of which case lights the cover, and the cover backlight
source, are still required; this is an intermediate checkpoint.
2026-11-10 20:56:42 +02:00
Luxferre 2857ef4374 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.
2026-11-10 20:23:06 +02:00
Luxferre 40a840b49b Drive the 2720 Flip cover panel from userspace while closed
The shipping single-panel DTB left the external GC9305 unused because
bananarchy-cover-idle only knew /dev/fb1. The compiled daemon now owns the
shared QUP5 bus while the flip is closed: it claims gpio13/21/23 through
the gpiochip ABI, replays the external firmware over /dev/spidev0.1 at the
verified 25 MHz and pushes 240x240 RGB565 frames. LID OPEN restores the mux
and releases the panel lines; activation also requires the main panel to be
DPMS-off. Polarities are config keys and live SET knobs, with
SET backend none as a rollback. /dev/fb1 keeps precedence and the two-panel
spi-mux DT stays opt-in.

Rebuilt the a1108/dejavu nokia-beatles image and pinned the verified hash
ccc8c44517a6a3b78e16e45e9dddbf89f6f04a35ee4c52246d38d89970bd13ac in
check-rebuild.sh. e2fsck -fn passes on both partitions, debugfs confirms
the four 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 confirmation that the cover
lights up and several more polarity/CS fixes are still required.
2026-11-10 19:41:57 +02:00
Luxferre d402a53221 Compact agent guide to essential project rules 2026-11-10 18:50:56 +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 20603893e7 Fix Bluetooth HID connections in dual-mode BlueZ
ControllerMode=bredr made BlueZ 5.87 reject the LE-only HOGP profile, so discovered BLE keyboards and mice never created input devices. Use dual mode, power/LE preflight, LE bearer selection for HID-over-GATT devices, automatic pairing on Connect Device and a pkill-free daemon stop path. Add scripts/test-bluetooth-hid.py and check-rebuild guards, synchronize docs, and rebuild the 2720 image (09226459...).
2026-11-10 17:45:52 +02:00
Luxferre e4358665f7 Enable WCNSS LE before Bluetooth discovery
Live btmgmt/btmon showed hci0 powered with le absent from current settings; BlueZ issued only BR/EDR Inquiry, so BLE peripherals were invisible. Add a narrow doas helper to run btmgmt -i hci0 le on before each interactive scan, make bluez-btmgmt explicit, add the doas rule, host guards and docs. With real peripherals in pairing mode the plugin UI reported 5 devices and retained BT KeyBoard / LE-QC Ultra entries.
2026-11-10 16:15:50 +02:00
Luxferre 77127c7844 Keep live BlueZ discovery client alive for real scans
The previous Bluetooth fix only proved parser behavior with a synthetic stream. Real BlueZ discovery needs one interactive client to stay alive while unpaired Device1 objects exist. Add a bluetoothctl wrapper and bananarchy-bt-scan.sh PTY session that powers on, sets auto/duplicate-data filters, queries devices during discovery, and stops discovery cleanly. Add util-linux-misc, host test, docs and rebuild guards. Deployed to the live phone; a physical peripheral in pairing mode is still needed for final confirmation.
2026-11-10 16:04:14 +02:00
Luxferre f892531df6 Compile WebKit GSettings schemas for clean rootfs builds
The live nokia-beatles target exposed two gaps: the phone was still running the baseline webarchy.so/networks.so binaries, and WebKit's network process aborted because apk --no-scripts left gschemas.compiled ungenerated. Deploy the current plugin binaries on the phone and make clean image builds compile the schema database from explicit glib/gsettings-desktop-schemas packages. Add a host test and build guards; live HTTP rendering and Bluetooth discovery now pass.
2026-11-10 15:47:03 +02:00
Luxferre a7b1a75465 Gate the two-panel DT behind an opt-in build after live phone regression 2026-11-10 14:53:47 +02:00
Luxferre 31db372779 Add a no-cover DTB rollback for 2720 Flip hardware sign-off 2026-11-10 14:14:47 +02:00
Luxferre 90e6771700 Blank the cover fbdev when off and add panel diagnostics 2026-11-10 14:11:00 +02:00
Luxferre 7c52d616e7 Enable the 2720 Flip external panel and rebuild its DTB 2026-11-10 14:05:23 +02:00
Luxferre ec55fb1457 Implement 2720 Flip cover display behaviour 2026-11-10 13:23:03 +02:00
Luxferre a50c01b416 Fix GPS modem selection and add a GPS-only time source 2026-11-10 13:18:14 +02:00
Luxferre eaf08abcd4 Refresh the charge icon immediately on charger plug/unplug 2026-11-10 13:00:41 +02:00
Luxferre 6a6222c198 Fix Bluetooth discovery so scanned devices are listed 2026-11-10 12:58:51 +02:00
Luxferre 5d859d7b11 Trigger the screenlock daemon on idle screen blanking 2026-11-10 12:51:15 +02:00
Luxferre 77d95c715c Fix Webarchy WebKit renderer on the 2720 Flip 2026-11-10 12:43:41 +02:00
Luxferre a4f2051d50 Fix 2720 hardware support and streamline changelog 2026-11-10 08:38:40 +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 4963022c10 Keep the status bar clock minute-accurate, including while the panel is dark
- Add a lightweight statusbar_clock job (sxmo_run_aligned.sh 60 running
  sxmo_hook_statusbar.sh time) to all three sxmo_hook_start.sh copies while
  the heavier statusbar_periodics loop stays at 300 s.
- Let the time action refresh 099-time even when the screen is blanked; only
  the xsetroot publish remains gated by ! is_screen_dark, so the native
  desktop clock is redrawn as soon as the panel wakes.
- Guard the job and the time action in check-rebuild.sh, update AGENTS,
  MANUAL and the a1108 changelog, redeploy to the connected phone and
  rebuild the a1108 / dejavu image.
2026-11-08 10:47:37 +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 8448b6465f Mark a1108 dejavu release and rebuild image
Group all previously unreleased changes under Build a1108 / dejavu, update README, MANUAL, AGENTS and battery analysis for the current release, add release codename support to scripts/version.sh and check-rebuild.sh, update os-release/issue/motd templates including usr/lib/os-release, rebuild the image under a1108, and deploy the same release metadata to the live phone.
2026-11-08 09:56:01 +02:00
Luxferre 608a8ac71b Replace idle network poller with event-driven dispatcher
A/B measure and reject additional VM/sysctl/mount tweaks that did not improve idle without trade-offs. Remove sxmo_networkmonitor's long-lived nmcli device monitor, replace it with NetworkManager dispatcher hooks that run Sxmo network/statusbar hooks as the X session user, disable the superd unit in both start hooks, guard it in check-rebuild.sh, update docs, rebuild the image, and verify live Wi-Fi reconnect and idle context switches.
2026-11-08 09:28:13 +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
Luxferre 9ac39ce6bf Sync network time when a connection comes up 2026-11-07 21:53:07 +02:00