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

@@ -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