Fix multipart incoming SMS QMI WMS routing and CSMS reassembly

This commit is contained in:
Luxferre committed 2026-10-29 22:32:09 +02:00
1 parent 1ef9064169
commit 8c2a337c0d
3 files changed
+102 -48

No files matched your search

+2 -2
View File
@@ -31,8 +31,8 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- Rewrote `sxmo_soundmonitor.sh` to monitor kernel `udev` `sound` jack events and `/dev/input/event*` `SW_HEADPHONE_INSERT` events (plus initial boot state), automatically switching audio output to `Headphones` (`RX1`/`RX2` HPHL/HPHR DAC) when 3.5mm headphones are plugged in and restoring `Speaker` on unplug.
- Added `Earpiece` as a first-class routable audio output device alongside `Speaker` and `Headphones` in `sxmo_audio.sh`, `dmenu` Audio menu, and `xdrawer`.
- Made volume controls strictly linear (`1%`–`100%` mapped directly without cubic `wpctl` distortion) across `sxmo_audio.sh`, `xdrawer`, and `dmenu`.
- **Incoming SMS regression fix**:
- Restored execute permissions (`0755`) on `/usr/share/sxmo/default_hooks/sxmo_hook_smslog.sh`, added active SIM/NV message storage polling (`wms-list-messages`) in `msm-modem-uim-selection dsds-daemon` for modem firmware that suppresses `WMS Event Report` indications, and deduplicated incoming SMS delivery between `dsds-daemon` and `sxmo_modem.sh`.
- **Incoming and multipart SMS delivery and reassembly**:
- Restored execute permissions (`0755`) on `/usr/share/sxmo/default_hooks/sxmo_hook_smslog.sh`, configured `QMI_WMS_SET_ROUTES` (`0x0032`) on Secondary GW (`SUB 1`) in `msm-modem-uim-selection dsds-daemon` to `STORE_AND_NOTIFY` / `TRANSFER_AND_ACK` so the Qualcomm baseband immediately acknowledges (`RP-ACK`) every incoming segment in hardware, added multi-pass SIM/NV message storage harvesting (`wms-list-messages`), and implemented full 8-bit (`IEI 0x00`) and 16-bit (`IEI 0x08`) concatenated SMS (CSMS) reassembly across both GSM-7 septet and UCS-2 UTF-16BE (including split surrogate pairs) with segment deduplication.
- **Battery and idle power optimizations**:
- Added VM writeback (`dirty_writeback_centisecs=6000`), `printk` throttling, `sched_autogroup_enabled=0`, Wi-Fi powersave (`iw dev wlan0 set power_save on`), and USB/platform runtime PM (`power/control = auto`) in `/etc/local.d/10-power-save.start` and `/etc/sysctl.d/10-power.conf`.
- Increased `conky` desktop clock refresh interval to `15.0s` and froze `conky` (`SIGSTOP`/`SIGCONT`) whenever the screen is off or locked, replaced polling in `sxmo_modemmonitor.sh` with event-driven `dbus-monitor`, skipped redundant `sxmo_hook_statusbar.sh` updates while `screenoff`, and drained queued X11 `UnmapNotify` events in `neoui_hide()` so all 22 resident DWM plugins sleep at `0%` CPU when hidden.