Implement 0014 keypad debouncer, Sparkler LRA filter, standby fixes, and stage a1125 (ampere)
- Extend 0012 standby optimizations with removable-SD-only MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE in sdhci-msm, proxy mem clock and BIMC XO re-parenting + 0x45000 BIT(2) early-vote clear in qcom_q6v5_mss / gcc-msm8909, 100 MHz opp-99999975 floor across qcom-msm8909.dtsi and all 6 device DTS/DTBs, disabled-by-default Bluetooth with bt_enabled persistence, NM ipv6.method=ignore + standby wlan0/disable_ipv6 muting, and post-park DSDS signal hysteresis - Add ABI-preserving system-core keypad debouncer patch 0014 (drivers/input/input.c key_debounce_ms + pm8941-pwrkey press/release chatter holdoff), replace ignored col-scan-delay-ms with col-scan-delay-us = <0x32> and raise DT debounce intervals across all 6 DTS/DTBs, configure per-target key_debounce_ms at boot and xset r rate 300 25, and add C/DTS verification in scripts/test-keypad-debouncer.py - Isolate Nokia 8000 4G (nokia-sparkler / nokia-leo) media playback from the shared 157 Hz SPK_DRV vibrator channel via dynamic Speaker-only filtering in music.so, files.so, and ringtones.so, explicit RX3/SPK mixer zeroing on Earpiece/Headphones/Bluetooth routes in sxmo_audio.sh and preview plugins, and Sparkler/Leo-only /etc/mpv/mpv.conf provisioning - Register upcoming build a1125 (ampere) in scripts/version.sh, scripts/check-rebuild.sh, AGENTS.md, and CHANGELOG.md, fix --for-rebuild pre-rebuild stale output checks in check-rebuild.sh/test-cover-dt.py, rebuild vmlinuz/DTBs/plugins and all 4 --mkinitfs target images stamped a1125 (ampere), and pin their verified SHA-256 checksums
This commit is contained in:
1 parent
c529463ae3
commit
5d427e39ab
55 files changed
+78935
-77569
No files matched your search
@@ -3,6 +3,7 @@ level=OFF
|
||||
|
||||
[connection]
|
||||
wifi.powersave=3
|
||||
ipv6.method=ignore
|
||||
|
||||
# Associated multi-channel background roam scans are suppressed in kernel
|
||||
# wcn36xx while screen_off_offload=Y and RSSI is healthy.
|
||||
|
||||
@@ -78,11 +78,38 @@ fi
|
||||
# K10: no IPv6 on interfaces created after boot (also in sysctl.d).
|
||||
{ printf '1\n' > /proc/sys/net/ipv6/conf/default/disable_ipv6; } 2>/dev/null || true
|
||||
|
||||
# Configure system-core physical keypad bounce debounce window (in ms).
|
||||
if [ -w /sys/module/input_core/parameters/key_debounce_ms ]; then
|
||||
_kdb_ms=45
|
||||
if [ -r /sys/firmware/devicetree/base/compatible ] && \
|
||||
tr '\0' '\n' < /sys/firmware/devicetree/base/compatible 2>/dev/null | \
|
||||
grep -qxE 'nokia,(argon|sparkler|leo)'; then
|
||||
_kdb_ms=55
|
||||
fi
|
||||
if [ -r /etc/bananarchy/key-debounce.conf ]; then
|
||||
_kdb_cfg="$(sed -n 's/^[[:space:]]*KEY_DEBOUNCE_MS=\([0-9][0-9]*\).*/\1/p' /etc/bananarchy/key-debounce.conf | tail -n 1)"
|
||||
[ -n "$_kdb_cfg" ] && _kdb_ms="$_kdb_cfg"
|
||||
fi
|
||||
printf '%s\n' "$_kdb_ms" > /sys/module/input_core/parameters/key_debounce_ms 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Wi-Fi power save is enabled by NetworkManager (wifi.powersave=3) and by the
|
||||
# wcn36xx WIPHY_FLAG_PS_ON_BY_DEFAULT / dynamic_ps_timeout=200 kernel patch.
|
||||
# Verified on-device: "iw dev wlan0 get power_save" reports "Power save: on".
|
||||
# No iw binary is shipped, so no userspace iw call belongs here.
|
||||
|
||||
# Keep Bluetooth RF-killed and stopped at boot unless explicitly enabled
|
||||
bt_want=0
|
||||
if [ -r /home/user/.config/sxmo/bt_enabled ]; then
|
||||
IFS= read -r bt_val < /home/user/.config/sxmo/bt_enabled 2>/dev/null || bt_val=""
|
||||
case "$bt_val" in 1|on|ON|yes|YES|true|TRUE) bt_want=1 ;; esac
|
||||
fi
|
||||
if [ "$bt_want" = "0" ]; then
|
||||
rfkill block bluetooth >/dev/null 2>&1 || true
|
||||
rc-service bluetooth status >/dev/null 2>&1 && rc-service bluetooth stop >/dev/null 2>&1 || true
|
||||
rc-update del bluetooth default >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
# Restore any persistent Engineering Menu Wi-Fi/BT MAC and IMEI override state
|
||||
if [ -x /usr/bin/bananarchy-engmenu-ctl ]; then
|
||||
/usr/bin/bananarchy-engmenu-ctl apply-boot >/dev/null 2>&1 || true
|
||||
|
||||
@@ -46,7 +46,14 @@ if [ -z "$SXMO_NO_AUDIO" ]; then
|
||||
if [ "$(command -v pulseaudio)" ]; then
|
||||
superctl start pulseaudio
|
||||
elif [ "$(command -v pipewire)" ]; then
|
||||
if ! pidof -s pipewire >/dev/null 2>&1; then
|
||||
if ! superctl status pipewire 2>/dev/null | grep -q started; then
|
||||
# Clean up any unmanaged pipewire instance / stale socket before superd launch.
|
||||
stale_pw=0
|
||||
for pw_pid in $(pidof pipewire 2>/dev/null); do
|
||||
[ -n "$pw_pid" ] && kill "$pw_pid" 2>/dev/null && stale_pw=1 || true
|
||||
done
|
||||
[ "$stale_pw" = "1" ] && sleep 0.1
|
||||
rm -f "${XDG_RUNTIME_DIR:-/run/user/10000}/pipewire-0" "${XDG_RUNTIME_DIR:-/run/user/10000}/pipewire-0.lock" 2>/dev/null || true
|
||||
superctl start pipewire
|
||||
pw_wait=0
|
||||
while [ ! -S "${XDG_RUNTIME_DIR:-/run/user/10000}/pipewire-0" ] && [ "$pw_wait" -lt 30 ]; do
|
||||
@@ -55,7 +62,13 @@ if [ -z "$SXMO_NO_AUDIO" ]; then
|
||||
done
|
||||
fi
|
||||
superctl start pipewire-pulse
|
||||
pidof -s wireplumber >/dev/null 2>&1 || superctl start wireplumber
|
||||
if ! superctl status wireplumber 2>/dev/null | grep -q started; then
|
||||
superctl start wireplumber
|
||||
sleep 0.2
|
||||
if ! superctl status wireplumber 2>/dev/null | grep -q started; then
|
||||
superctl start wireplumber
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -145,8 +158,14 @@ superctl start sxmo_notificationmonitor
|
||||
(
|
||||
sxmo_hook_apps.sh >/dev/null 2>&1 || true
|
||||
sxmo_hook_scripts.sh >/dev/null 2>&1 || true
|
||||
if [ "$(/usr/bin/sxmo_bluetoothtoggle.sh status 2>/dev/null)" = "on" ]; then
|
||||
SXMO_OS=alpine doas -n /usr/bin/sxmo_bluetoothtoggle.sh on >/dev/null 2>&1 || true
|
||||
bt_cfg="${XDG_CONFIG_HOME:-$HOME/.config}/sxmo/bt_enabled"
|
||||
if [ -r "$bt_cfg" ]; then
|
||||
IFS= read -r bt_val < "$bt_cfg" 2>/dev/null || bt_val=""
|
||||
case "$bt_val" in
|
||||
1|on|ON|yes|YES|true|TRUE)
|
||||
SXMO_OS=alpine doas -n /usr/bin/sxmo_bluetoothtoggle.sh on >/dev/null 2>&1 || true
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
) &
|
||||
)
|
||||
Reference in new issue
Block a user