Finally figure out why volume adjustment wasn't happening first thing, it was in the wrong file. This should finally be resolved once and for all.

This commit is contained in:
Storm Dragon
2025-08-19 16:02:12 -04:00
parent 8a7fb83be3
commit e39c1cedec
2 changed files with 31 additions and 28 deletions

View File

@@ -24,34 +24,7 @@ if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
exit 0
fi
# Wait for pipewire to become available and set volume
echo "Waiting for audio system to initialize..."
volume=50
wait=0
while [[ $wait -lt 30 ]]; do
if pgrep pipewire &> /dev/null ; then
echo "Audio system ready. Setting up volume..."
break
else
sleep 1
((wait++))
fi
done
# Volume calibration - this should be the first interactive part
while [[ $volume -le 130 ]]; do
clear
echo "Volume calibration (current: ${volume}%)"
pactl set-sink-volume @DEFAULT_SINK@ "${volume}%" 2>/dev/null
spd-say "If this is loud enough, press enter."
if read -t4 ; then
echo "Volume set to ${volume}%"
break
else
((volume+=5))
fi
done
# Volume calibration is now handled in stormux_first_boot.sh
export DIALOGOPTS='--insecure --no-lines --visit-items'