Fix instant QMI call hangup, eliminate post-call dialer/callscreen popups and desktop clock flicker
This commit is contained in:
1 parent
1d71bc81d8
commit
c9c870c3bb
27 files changed
+867
-308
No files matched your search
+2
-2
@@ -28,7 +28,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- Added a persistent BlueZ `NoInputNoOutput` default pairing/authorization agent (`/org/bananarchy/bt_agent`) and D-Bus `connect`/`pair` handler inside `/usr/bin/bananarchy-bt-obex` (skipping redundant pre-connect inquiry scans for known BlueZ devices and automatically recovering from stale `[LinkKey]` `br-connection-key-missing` errors) for seamless BLE HOGP (`00001812`), Classic HID (`00001124`), and A2DP/HFP bonding and reconnection, an automatic `/dev/uinput` gamepad-to-keypad bridge (`Bananarchy BT Gamepad Bridge`, excluding QWERTY keyboards) so Bluetooth/USB gamepads (`D-Pad` / `Left Stick` -> `Up`/`Down`/`Left`/`Right`, `South/A` -> `Enter`, `East/B` -> `8`, `West/X` -> `5`, `North/Y` -> `6`, `Start` -> `2`, `Select` -> `3`, `L1`/`R1` -> `Left`/`Right softkey`, `L2`/`R2` -> `*`/`0`, `Mode` -> `Escape`) control all NeoUI apps and games (`snake`, `tetris`, `scoundrel`, `gambatte`, `remedy`) out of the box, automatic `[KBD]` external keyboard detection (`isExternalKeyboardActive()`) in `fcitx5-t9`, `libneoui.so`, and DWM plugins so connecting a Bluetooth/USB QWERTY keyboard automatically bypasses T9 multi-tap and preedit popups for all keys (`0-9`, `*`, `#`, `Shift+0-9`, and letters), and automatic `XFixes` cursor display in `dwm` (`dwm_has_external_mouse()`) whenever a Bluetooth/USB mouse is connected.
|
||||
- **Universal Power button (`dmenu power`) access, background call termination, lockscreen X11 grab preemption, ReMEdy `Call (green)` pause menu, JSR expansion, and 64 MB mark-and-sweep GC**:
|
||||
- Updated `dwm`, `dmenu`, `xdrawer`, `libneoui.so`, `sxmo_multikey.sh`, all standalone Xlib DWM plugins, and standalone games (`scoundrel`, `gambatte`, `remedy`) so pressing **End / Power (red)** (`XF86PowerOff`, keycode `124`) from any active window or menu immediately ends any incoming, outgoing, or active call (even when `xcallscreen` has been switched away from in the background) or opens the system **Power menu (`dmenu power`)** when no call is active, while mapped **Call (green)** (`XF86Phone` / `XF86PickupPhone`) and `500 ms` **Right softkey** hold in `remedy` open the **ReMEdy Pause Menu**.
|
||||
- Updated `callscreen.so` (`xcallscreen`), `locker.so` (`xlocker`), `dwm` (`lock_phone_screenoff` on `SW_LID = 1`), `sxmo_hook_lock.sh`, `sxmo_modemcall.sh`, `sxmo_modemdial.sh`, and `msm-modem-uim-selection` so locking the screen or sliding the lid closed immediately hangs up any incoming, outgoing, or active cellular/VoIP call and closes `xcallscreen`, fixed DSDS QMI `call-dial` / `call-hangup all` / `dsds-daemon` state tracking so secondary-SIM calls are never orphaned when switching apps, and eliminated duplicate `xlocker` startup activations across `bananarchy-x11-session.sh`, `sxmo_hook_start.sh`, `sxmo_hook_lock.sh`, and `locker.so`.
|
||||
- Updated `callscreen.so` (`xcallscreen`), `dialer.so` (`xdialer`), `contacts.so` (`xcontacts`), `calllog.so` (`xcalllog`), `sms.so` (`xsms`), `locker.so` (`xlocker`), `dwm` (`lock_phone_screenoff` on `SW_LID = 1`), `sxmo_hook_lock.sh`, `sxmo_modemcall.sh`, `sxmo_modemdial.sh`, `sxmo_modemaudio.sh`, `sxmo_modem.sh`, `sxmo_modemmonitor.sh`, and `msm-modem-uim-selection` so locking the screen, sliding the lid closed, or pressing Hangup immediately sends `QMI_VOICE_END_CALL` (`0x0021`) over `AF_QIPCRTR` (`sub=1` and `sub=0`) in `< 10 ms`, aborts any in-flight `sxmo_modemdial.sh` pipeline via `/tmp/sxmo_hangup_requested`, starts Primary GW (`mmcli`) calls immediately upon creation without duplicate audio setup or background `incall_menu` jobs, guards `dialer` and `callscreen` against stale post-hangup or mid-call window popups, serializes `sxmo_modemaudio.sh` call-audio teardown (`flock` on `/tmp/sxmo_modemaudio.lock`), and prevents `callscreen` from fighting `dunst` notifications on `VisibilityNotify`, while eliminating duplicate `xlocker` and `dsds-daemon` startup instances.
|
||||
- Upgraded **ReMEdy (`remedy` / `j2me`)** with a `64 MB` heap budget and mark-and-sweep garbage collector (`System.gc()` / `Runtime.gc()`, `freeSlots_` object reuse, and full heap/JAR release on MIDlet exit), synchronous `Canvas.serviceRepaints()`, `Thread.yield()` / `Thread.sleep()` background thread stepping, synthetic native static field storage (`System.out`, `System.err`, `List.SELECT_COMMAND`, `AlertType.*`, `Boolean.TRUE/FALSE`), exact `String` reference preservation in `List.getString()` and `ChoiceGroup.getString()` (for `MeBoy` / `GTA 2` GBC-to-J2ME cartridges), `java.io.InputStreamReader` / `OutputStreamWriter`, `java.lang.Float` / `Double` / `Character`, **JSR-75** (`FileSystemRegistry` / `FileConnection`), **JSR-82** (`javax.bluetooth.*`), **JSR-120** (`javax.wireless.messaging.*`), **JSR-135** (`MIDIControl`), full **Nokia `DirectGraphics`** (`drawPixels`, `getPixels`, `fillPolygon`, `drawPolygon`, `fillTriangle`, `drawTriangle`, `setARGBColor`), and automatic/configurable sub-QVGA (`128x128`, `128x160`, `176x208`, `176x220`) canvas scaling (`Asphalt 6: Adrenaline`).
|
||||
- **Kernel-to-userspace battery, charging, fuel-gauge, and idle power optimizations**:
|
||||
- Fixed PM8909/PM8916 linear battery charger (`pm8916_lbc.ko.zst`) hardware state-machine engagement by writing `MISC_BOOT_DONE` (`0x1642 = 0x80`), overriding the internal charger comparator (`0x10d0 = 0xa5`, `0x10ee = 0x02`), stopping the USB enumeration watchdog timer (`0x134e = 0x00`, `0x104e = 0x00`), clearing `USB_SUSP` (`0x1347 = 0x00`) and `CHG_FAILED` (`0x104a = 0x80`), enabling `BAT_IF` thermistor pull-ups (`0x1248`, `0x124a`), re-arming `CHG_CTRL = 0x81` on every `usb_vbus` plug event, and setting `qcom,fast-charge-safe-current = 540 mA` (`4.375 V`) across all 5 device trees (`nokia-argon`, `nokia-beatles`, `nokia-tough`, `nokia-sparkler`, `nokia-leo`) so USB charging engages `FAST_CHG_ON` (`0x1010 = 0x20`) instead of idling at `90 mA`.
|
||||
@@ -41,7 +41,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- Set the DSDS `msm-modem-uim-selection` `select()` timeout to infinite (`None`, pure `AF_QIPCRTR` event-driven wait) while the screen is locked and `600s` when unlocked, added `neoui_next_timeout_ms()` to `libneoui.so`, wired GLib `GMainContext` file descriptors and `"load-failed"` / `closeWindow()` load-stop handling into `webarchy.so` (along with `NO_AT_BRIDGE=1` and `GTK_A11Y=none`), added `inotify` directory watching to `sms.so`, and eliminated idle periodic `poll()` timers across `dialer.so`, `calllog.so`, `contacts.so`, `sms.so`, `xdrawer.so`, `locker.so`, `email.so`, `irc.so`, `smallweb.so`, `tox.so`, `sip.so`, and `webarchy.so` so visible and background plugins sleep at `0%` CPU unless a transient timer (`softkey` chord, multi-tap window, or toast expiry) is active.
|
||||
- Skipped `dwm` `drawbar()` Xorg/Glamor/SPI redraws and `sxmo_hook_statusbar.sh` process spawns whenever `bl_power != 0`, `brightness == 0`, or `/tmp/bananarchy_screen_locked` exists (with immediate bar refresh on wake/unlock), fast-exited `sxmo_hook_statusbar.sh periodics` before sourcing hooks while locked or screenoff, serialized `bananarchy-sync-dunst-theme` with `flock` without spawning duplicate unmanaged `dunst` instances under `superd` (preventing `dunst` respawn storms), disabled NetworkManager periodic connectivity polling (`[connectivity] enabled=false`), and wrapped background spawns in double-fork subshells `( ... & )` across `bananarchy-x11-session.sh`, `sxmo_modemmonitor.sh`, `sxmo_hook_start.sh`, `sxmo_hook_postwake.sh`, and `msm-modem-uim-selection` to eliminate zombie child accumulation.
|
||||
- Fixed spontaneous screen blanking after sliding the keypad lid open and eliminated passcode entry lag in `xlocker` (`locker.so`) and `dwm` by removing queued asynchronous `sxmo_state.sh set screenoff` shell spawns from `lock_phone_screenoff()`, adding a `60 ms` `SW_LID` close debounce (`EVIOCGSW`) with instant wake on open, resetting `locker.so` inactivity timer on every unblank transition (`wasScreenBlanked`), forwarding any `dwm`-intercepted key events while locked directly to `/tmp/dwm_plugin_locker.fifo` (`KEY <keycode> <state>`), caching `locker.so` battery/notification status with a `10s` TTL, debouncing multi-digit auto-verification by `220 ms`, and adding a per-session random-salted 64-bit fast verification cache invalidated automatically on `/etc/shadow` or `/etc/bananarchy_duress.hash` changes.
|
||||
- Replaced the standalone `conky` process with native `dwm` desktop clock rendering (`m->clockwin` `ParentRelative` window at `Y = 29, H = 92`) using the exact same `Fira Code` fonts (`32pt` `%H:%M` at `Y = 43..73` and `14pt` `%a %d %b %Y` at `Y = 87..101`), white foreground, and 1px black drop shadow, eliminating the `conky` daemon, its periodic X11 wakeup timers, and all `pkill -STOP/-CONT conky` process spawns across lock/unlock, statusbar, and timezone transitions.
|
||||
- Replaced the standalone `conky` process with native `dwm` desktop clock rendering (`m->clockwin` `ParentRelative` window at `Y = 29, H = 92`) using the exact same `Fira Code` fonts (`32pt` `%H:%M` at `Y = 43..73` and `14pt` `%a %d %b %Y` at `Y = 87..101`), white foreground, and 1px black drop shadow, caching rendered clock/softbar state (`drawclock` and `drawsoftbar`) so statusbar updates (`xsetroot -name`) never clear or flash `m->clockwin` or `m->softwin` unless exposed or changed, and eliminating the `conky` daemon, its periodic X11 wakeup timers, and all `pkill -STOP/-CONT conky` process spawns across lock/unlock, statusbar, and timezone transitions.
|
||||
- **Zero-log privacy default and Extended Logging feature setting (`engmenu.so` / `xengmenu`, `dmenu.so`, `bananarchy-engmenu-ctl`)**:
|
||||
- Disabled extended system and session logging by default (`OFF`) across `sxmo_log()` / `sxmo_debug()`, `superd` (`-l /dev/null` and `/tmp/superd_state/superd/logs/*.log -> /dev/null`), `Xorg` (`-logfile /dev/null -logverbose 0`), `dwm`, `fcitx5` (`--verbose="*=0"`), `tinydm` (`tinydm-run-session`), `NetworkManager` (`level=OFF`), `ModemManager` (`--log-level=ERR --log-file=/dev/null`), and kernel `printk` (`1 4 1 1`), purging persistent log files from `~/.local/state/` and `/var/log/` so idle mode produces zero log writes.
|
||||
- Added the **Extended Logging** toggle (`OFF` by default) to the **Engineering Menu (`*#0001#` / `xengmenu` -> `8: Extended Logging`)**, **Config Menu (`Config -> Extended Logging`)**, and `/usr/bin/bananarchy-engmenu-ctl logging [on|off|toggle|status]`, storing volatile diagnostic logs strictly in RAM (`/tmp/sxmo.log`, `/tmp/superd.log`, `/tmp/superd_state/superd/logs/*.log`) when enabled and purging them immediately when disabled.
|
||||
|
||||
Reference in new issue
Block a user