--- /etc/rc.d/rc.alsa 2010-04-30 08:54:05.000000000 +0200 +++ root/etc/rc.d/rc.alsa 2010-07-31 17:52:06.969126626 +0200 @@ -4,59 +4,20 @@ # A function to load the ALSA mixer settings: load_alsa_mixer() { - if [ -r /etc/asound.state ]; then - echo "Loading ALSA mixer settings: /usr/sbin/alsactl restore" - /usr/sbin/alsactl restore - else - # It's possible a user might not want to set a default sound state. - # In that case, do this: touch /etc/no.asound.state - if [ ! -r /etc/no.asound.state ]; then - echo "Setting default ALSA mixer settings." - # set default mixer volumes for ALSA - # Taken from the alsaconfig script. - amixer -s -q </dev/null 2>/dev/null; then + if [ -r /etc/asound.state ]; then + echo "Loading ALSA mixer settings: /usr/sbin/alsactl restore" + /usr/sbin/alsactl restore + else + echo "Setting sound volume: 71%" + for SCONTROL in {"Master","PCM","Front","Surround","Center","CD","Video","Wave","Music","AC97","Headphone"}; do + /usr/bin/amixer -q sset $SCONTROL 71% unmute 2>/dev/null + done fi fi + ### /modified for Live ### } # A function to load the ALSA OSS compat modules: