PDA

View Full Version : Need ALSA in HDD-INSTALL!



StyleWarz
04-29-2003, 10:18 AM
I use onboard-sound (MSI KT3 ULTRA) and only with ALSA I get my sound working. But now I did a HDD-Install and I just don't know how to enable ALSA right now!

Please help me...


I use Knoppix 3.2 2003-04-18

rickenbacherus
04-29-2003, 04:48 PM
I used the search function and in about 10 seconds found the answer.

Open a term and enter /etc/init.d/alsa-autoconfig

StyleWarz
04-30-2003, 01:00 PM
You're great, thanks...

(It just works great now!!!!!!)

StyleWarz
04-30-2003, 03:03 PM
I'm very happy, thanks again m8...

rickenbacherus
04-30-2003, 04:32 PM
:cool: right on

Jean Béliveau
05-05-2003, 08:26 PM
Ad the line :

/etc/init.d/alsa-autoconfig

at /ect/init.d/bootmisc.sh

For futur version of KNOPPIX I suggest to add in /usr/local/bin/knx-hdinstall some line like those:

# add alsa activation to bootmisc.sh
# In the boot script /etc/init.d/bootmisc.sh if you add line
# /etc/init.d/alsa-autoconfig
# Alsa server start at boot and it ok for my kde.
# In the KNOPPIX/usr/local/bin/knx-hdinstall of my personalized KNOPPIX I have add some line like:

if checkbootparam alsa >/dev/null 2>&1; then
ALSA_CARD="$(getbootparam 'alsa' 2>/dev/null)"
[ -n "$ALSA_CARD" ] || ALSA_CARD="autodetect"
else
ALSA_CARD="autodetect"
fi

noalsa=""
checkbootparam noalsa && noalsa='#'
checkbootparam noaudio && noalsa='#'
checkbootparam nosound && noalsa='#'

echo "# Boot parameter for knx-hdinstall add " >>$TR/etc/init.d/bootmisc.sh
echo "# "$CMDLINE >>$TR/etc/init.d/bootmisc.sh
echo "# KNOPPIX/usr/local/bin/knx-hdinstall add " >>$TR/etc/init.d/bootmisc.sh
echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"ALSA_CARD="$ALSA_CARD >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"/etc/init.d/alsa-autoconfig" >>$TR/etc/init.d/bootmisc.sh

# So the script knx-hdinstall add /etc/init.d/alsa-autoconfig
# at the boot script /etc/init.d/bootmisc.sh.
# May be a futur version of knx-hdinstall can
# transmit.some parameters to alsa and
# set USE_ALSA="" if alsa are detected unsafe.
# Also this option can be offer like for the CUPS server./

Jean Béliveau
05-10-2003, 03:32 AM
I have test knx-hdinstall wth the folling uncommented line instead of the line of my late post
on alsa after knx-hdinstall.:

noalsa=""
checkbootparam noalsa && noalsa='# '
checkbootparam noaudio && noalsa='# '
checkbootparam nosound && noalsa='# '

echo "# 2 lignes to start sound server alsa" >>$TR/etc/init.d/bootmisc.sh
echo "# uncomment to start alsa at boot" >>$TR/etc/init.d/bootmisc.sh
echo $noalsa"aumix -w 60 -v 60" >>$TR/etc/init.d/bootmisc.sh

# use Knoppix-generated modutils/1alsa and alsa-0.9-knoppix
cp -af /etc/modutils/1alsa $TR/etc/modutils/1alsa
cp -af /etc/modutils/alsa-0.9-knoppix $TR/etc/modutils/alsa-0.9-knoppix

I was inspired of the folling lignes in knx-hdinstal:

# use Knoppix-generated XF86Config
cp -af /etc/X11/XF86Config $TR/etc/X11/XF86Config
cp -af /etc/X11/XF86Config-4 $TR/etc/X11/XF86Config-4

1alsa and alsa-0.9-knoppix are copied in /etc/modutils/ of the target partition

and "aumix -w 60 -v 60" ais added to bootmis.sh

But sound card not work on reboot on target partition!