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:
Luxferre committed 2026-11-23 15:26:56 +02:00
1 parent c529463ae3
commit 5d427e39ab
55 files changed
+78935 -77569

No files matched your search

+38716 -38712
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
@@ -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
) &
)
@@ -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
@@ -144,8 +157,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
) &
)
@@ -17,10 +17,12 @@ RAT_PIDFILE="$RUNDIR/rat_timer.pid"
STANDBY_MODE="$RUNDIR/standby.mode"
GSM_UNSUPPORTED="$RUNDIR/gsm_unsupported"
IPV6_RA_SAVED="$RUNDIR/wlan0_accept_ra"
IPV6_DISABLE_SAVED="$RUNDIR/wlan0_disable_ipv6"
BOOTTOKEN="$RUNDIR/boot.token"
READYSTAMP="$RUNDIR/modem_ready.stamp"
DRXLOCK="$RUNDIR/lock.drx"
ACCEPT_RA="${BANANARCHY_ACCEPT_RA_PATH:-/proc/sys/net/ipv6/conf/wlan0/accept_ra}"
DISABLE_IPV6="${BANANARCHY_DISABLE_IPV6_PATH:-/proc/sys/net/ipv6/conf/wlan0/disable_ipv6}"
SPM_PARAM_DIR="${BANANARCHY_SPM_PARAM_DIR:-/sys/module/cpuidle_qcom_spm/parameters}"
WLAN_OPERSTATE_PATH="${BANANARCHY_WLAN_OPERSTATE_PATH:-/sys/class/net/wlan0/operstate}"
WIFI_OFFLOAD_PATH="${BANANARCHY_WIFI_OFFLOAD_PATH:-/sys/module/wcn36xx/parameters/screen_off_offload}"
@@ -209,27 +211,48 @@ ims_conf_val() {
mute_wifi_ipv6_ra() {
[ "$WIFI_SCREEN_OFF_IPV6_MUTE" = "1" ] || return 0
[ -w "$ACCEPT_RA" ] || return 0
if [ ! -w "$ACCEPT_RA" ] && [ ! -w "$DISABLE_IPV6" ]; then
return 0
fi
ip -4 addr show dev wlan0 2>/dev/null | grep -q 'inet ' || return 0
if [ "$(ims_state_val VOWIFI_ACTIVE)" = "1" ] && [ "$(ims_state_val VOWIFI_IPV6_EPDG)" = "1" ]; then
return 0
fi
if [ ! -f "$IPV6_RA_SAVED" ]; then
cur_ra=""
IFS= read -r cur_ra < "$ACCEPT_RA" 2>/dev/null || cur_ra=""
case "$cur_ra" in ''|*[!0-9]*) cur_ra=1 ;; esac
printf '%s\n' "$cur_ra" > "$IPV6_RA_SAVED" 2>/dev/null || true
if [ -w "$ACCEPT_RA" ]; then
if [ ! -f "$IPV6_RA_SAVED" ]; then
cur_ra=""
IFS= read -r cur_ra < "$ACCEPT_RA" 2>/dev/null || cur_ra=""
case "$cur_ra" in ''|*[!0-9]*) cur_ra=1 ;; esac
printf '%s\n' "$cur_ra" > "$IPV6_RA_SAVED" 2>/dev/null || true
fi
printf '0\n' > "$ACCEPT_RA" 2>/dev/null || true
fi
if [ -w "$DISABLE_IPV6" ]; then
if [ ! -f "$IPV6_DISABLE_SAVED" ]; then
cur_dis=""
IFS= read -r cur_dis < "$DISABLE_IPV6" 2>/dev/null || cur_dis=""
case "$cur_dis" in ''|*[!0-9]*) cur_dis=0 ;; esac
printf '%s\n' "$cur_dis" > "$IPV6_DISABLE_SAVED" 2>/dev/null || true
fi
printf '1\n' > "$DISABLE_IPV6" 2>/dev/null || true
fi
printf '0\n' > "$ACCEPT_RA" 2>/dev/null || true
}
restore_wifi_ipv6_ra() {
[ -f "$IPV6_RA_SAVED" ] || return 0
saved_ra=1
IFS= read -r saved_ra < "$IPV6_RA_SAVED" 2>/dev/null || saved_ra=1
case "$saved_ra" in ''|*[!0-9]*) saved_ra=1 ;; esac
[ -w "$ACCEPT_RA" ] && printf '%s\n' "$saved_ra" > "$ACCEPT_RA" 2>/dev/null || true
rm -f "$IPV6_RA_SAVED" 2>/dev/null || true
if [ -f "$IPV6_RA_SAVED" ]; then
saved_ra=1
IFS= read -r saved_ra < "$IPV6_RA_SAVED" 2>/dev/null || saved_ra=1
case "$saved_ra" in ''|*[!0-9]*) saved_ra=1 ;; esac
[ -w "$ACCEPT_RA" ] && printf '%s\n' "$saved_ra" > "$ACCEPT_RA" 2>/dev/null || true
rm -f "$IPV6_RA_SAVED" 2>/dev/null || true
fi
if [ -f "$IPV6_DISABLE_SAVED" ]; then
saved_dis=0
IFS= read -r saved_dis < "$IPV6_DISABLE_SAVED" 2>/dev/null || saved_dis=0
case "$saved_dis" in ''|*[!0-9]*) saved_dis=0 ;; esac
[ -w "$DISABLE_IPV6" ] && printf '%s\n' "$saved_dis" > "$DISABLE_IPV6" 2>/dev/null || true
rm -f "$IPV6_DISABLE_SAVED" 2>/dev/null || true
fi
}
has_active_call() {
@@ -306,6 +329,7 @@ park_wifi_rat() {
fi
if [ "$reg_ok" -eq 1 ]; then
: > "$RAT_PARKED"
[ -x "$DSDS_BIN" ] && "$DSDS_BIN" --sig-hysteresis dark >/dev/null 2>&1 || true
log "Wi-Fi standby RAT parked to gsm (saved: $saved_rat)"
return 0
fi
@@ -151,7 +151,7 @@ else
xset +dpms >/dev/null 2>&1 || true
xset dpms 0 0 0 >/dev/null 2>&1 || true
fi
xset r rate 180 30 >/dev/null 2>&1 || true
xset r rate 300 25 >/dev/null 2>&1 || true
SESSION_PID_FILE="/tmp/bananarchy-x11-session.pid"
printf "%s\n" "$$" > "$SESSION_PID_FILE"
+25
View File
@@ -611,12 +611,23 @@ apply_vol_out() {
Earpiece)
if [ "$eff_pct" -gt 0 ]; then
amixer -c 0 -s >/dev/null 2>&1 <<EOF || true
cset "name='SPK DAC Switch'" 0
cset "name='RX3 MIX1 INP1'" 'ZERO'
cset "name='RX3 Digital Volume'" 0
cset "name='HPHL'" 'ZERO'
cset "name='HPHR'" 'ZERO'
cset "name='RX2 MIX1 INP1'" 'ZERO'
cset "name='RX2 Digital Volume'" 0
cset "name='RX1 MIX1 INP1'" 'RX1'
cset "name='RDAC2 MUX'" 'RX1'
cset "name='EAR_S'" 'Switch'
cset "name='RX1 Digital Volume'" $hw
EOF
else
amixer -c 0 -s >/dev/null 2>&1 <<EOF || true
cset "name='SPK DAC Switch'" 0
cset "name='RX3 MIX1 INP1'" 'ZERO'
cset "name='RX3 Digital Volume'" 0
cset "name='EAR_S'" 'ZERO'
cset "name='RX1 Digital Volume'" 0
EOF
@@ -625,6 +636,11 @@ EOF
Headphones)
if [ "$eff_pct" -gt 0 ]; then
amixer -c 0 -s >/dev/null 2>&1 <<EOF || true
cset "name='SPK DAC Switch'" 0
cset "name='RX3 MIX1 INP1'" 'ZERO'
cset "name='RX3 Digital Volume'" 0
cset "name='EAR_S'" 'ZERO'
cset "name='RDAC2 MUX'" 'RX2'
cset "name='RX1 MIX1 INP1'" 'RX1'
cset "name='RX2 MIX1 INP1'" 'RX2'
cset "name='HPHL'" 'Switch'
@@ -634,6 +650,9 @@ cset "name='RX2 Digital Volume'" $hw
EOF
else
amixer -c 0 -s >/dev/null 2>&1 <<EOF || true
cset "name='SPK DAC Switch'" 0
cset "name='RX3 MIX1 INP1'" 'ZERO'
cset "name='RX3 Digital Volume'" 0
cset "name='HPHL'" 'ZERO'
cset "name='HPHR'" 'ZERO'
cset "name='RX1 Digital Volume'" 0
@@ -1070,6 +1089,9 @@ deviceset() {
out_vol="$(read_dev_vol "$out_dev")"
apply_alsa_out "$out_dev" "$out_vol"
apply_alsa_in "$in_dev" "$(read_mic_vol)"
if [ -p /tmp/dwm_plugin_music.fifo ]; then
( printf 'AUDIO_ROUTE\n' > /tmp/dwm_plugin_music.fifo ) 2>/dev/null &
fi
sxmo_hook_statusbar.sh volume >/dev/null 2>&1 &
}
@@ -1148,6 +1170,9 @@ deviceapply() {
sync_pipewire_profile "$out_dev" "$in_dev"
apply_alsa_out "$out_dev" "$(read_dev_vol "$out_dev")"
apply_alsa_in "$in_dev" "$(read_mic_vol)"
if [ -p /tmp/dwm_plugin_music.fifo ]; then
( printf 'AUDIO_ROUTE\n' > /tmp/dwm_plugin_music.fifo ) 2>/dev/null &
fi
sxmo_hook_statusbar.sh volume >/dev/null 2>&1 &
}
@@ -56,6 +56,9 @@ on() {
;;
esac
mkdir -p /home/user/.config/sxmo
printf '1\n' > /home/user/.config/sxmo/bt_enabled
chown 10000:10000 /home/user/.config/sxmo /home/user/.config/sxmo/bt_enabled 2>/dev/null || true
/usr/bin/bananarchy-bt-obex start >/dev/null 2>&1 || true
}
@@ -75,7 +78,7 @@ off() {
kill -KILL $(pidof bluetoothd) 2>/dev/null || true
fi
rfkill block bluetooth
rm -f /run/bananarchy/bt-obex/ctrl_ready /run/bananarchy/bt-obex/bt_state.tsv 2>/dev/null || true
rm -f /home/user/.config/sxmo/bt_enabled /run/bananarchy/bt-obex/ctrl_ready /run/bananarchy/bt-obex/bt_state.tsv 2>/dev/null || true
}
case "${1:-toggle}" in
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -54,7 +54,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
@@ -63,7 +70,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
@@ -153,8 +166,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
) &
)