Me tooI hope some of the features introduced in the Lucid series get into the final version.
You won't believe what can be done in 6 weeks of Puppy intensity . . .
Be strong Mick
and now back to the bugs
I looked at alsamixer nothing there
Could there be some unwanted muting going on in this file?
/etc/init.d/10alsa
Code: Select all
#!/bin/sh
#Barry Kauler april 2009, puppylinux.com
#called from /etc/rc.d/rc.services at bootup, with 'start' param.
#called from /etc/rc.d/rc.shutdown at shutdown, with 'stop' param.
#101120, 101121 simplification.
#110111 shinobar: for reliable sound detection on HP Compac nc4010.
#110113 tweak delay. 110216 tweak delay.
#110506 /usr/sbin/alsaconf has 'restart' option, might need to reprobe modules. for now, just 'start|restart'.
#110724 add args for alsaequal and add 'Master Front'
case "$1" in
start|restart)
#110217 remove this test, seems to be a problem some people report file not created but snd ok...
#if [ -f /tmp/rc_d_rc_services_alsa_ok ];then #101121 see rc.services.
#if [ "`lsmod | grep '^snd_'`" != "" ];then
rm -f /var/lock/subsys/alsasound 2> /dev/null #or alsa will not start.
#sometimes these don't all load...
modprobe snd-mixer-oss
modprobe snd-seq-oss
modprobe snd-pcm-oss
for I in $(seq 4); do #110111 shinobar: for reliable sound detection on HP Compac nc4010.
sleep 0.5 #110113 reduce 1 to 0.5. 110216 move up.
[ -c /dev/mixer ] && break #note, /dev/mixer is deleted in /etc/rc.d/rc.sysinit.
done
if [ ! -f /etc/asound.state ];then
if [ -f /etc/asound.conf ];then #find card no for OPT
DEFCARD="`grep "defaults.pcm.card" /etc/asound.conf|cut -d ' ' -f2`"
else DEFCARD=0
fi
OPT="" #check if alsaequal is installed. This may also be needed for sound card choice
if [ -f /usr/lib/alsa-lib/libasound_module_ctl_equal.so ];then
OPT="-c $DEFCARD"
fi
#try and set all levels workable...
#set_mixers #in functions4puppy4
#101015 BK had to add ,0 after Front...
#110724 01micko add 'Master Front'
amixer -s -q $OPT <<EOF
set Master 75% unmute
set Master -12dB
set 'Master Mono' 75% unmute
set 'Master Mono' -12dB
set 'Master Front' 75% unmute
set 'Master Front' -12dB
set Front,0 75% unmute
set Front,0 -12dB
set PCM 90% unmute
set PCM 0dB
set Synth 90% unmute
set Synth 0dB
set CD 90% unmute
set CD 0dB
set Mic 0% mute
set PCM,1 90% unmute
set PCM,1 0dB
set Wave 100% unmute
set Music 100% unmute
set AC97 100% unmute
set 'Master Digital' 75% unmute
set DAC 90% unmute
set DAC -12dB
set DAC,0 90% unmute
set DAC,0 -12dB
set DAC,1 90% unmute
set DAC,1 -12dB
set Headphone 75% unmute
set Headphone -12dB
set Playback 100% unmute
set "SB Live Analog/Digital Output Jack" off
set "Audigy Analog/Digital Output Jack" off
EOF
else
alsactl -f /etc/asound.state restore #from /etc/asound.state.
fi
#fi
;;
stop)
alsactl -f /etc/asound.state store #saves to /etc/asound.state.
# Kill processes holding open sound devices...
fuser -k /dev/admmidi? /dev/adsp? /dev/amidi? /dev/audio* /dev/dmfm* /dev/dmmidi? /dev/dsp* /dev/dspW* /dev/midi0? /dev/mixer? /dev/music /dev/patmgr? /dev/sequencer* /dev/sndstat >/dev/null 2>&1
[ -d /proc/asound/dev ] && fuser -k /proc/asound/dev/* >/dev/null 2>&1
[ -d /dev/snd ] && fuser -k /dev/snd/* >/dev/null 2>&1
# remove all sequencer connections if any
[ -f /proc/asound/seq/clients -a -x aconnect ] && aconnect --removeall
# mute master to avoid clicks at unload
amixer set Master mute >/dev/null 2>&1
# remove all sound modules
lsmod | grep "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
while read line
do
rmmod `echo $line | cut -d ' ' -f 1`
done
# remove the 2.2 soundcore module (if possible)
rmmod soundcore 2> /dev/null
rmmod gameport 2> /dev/null
# remove lockfile if lockdir exists
[ -d /var/lock/subsys ] && rm -f /var/lock/subsys/alsasound
;;
esac
###END###