I'm sure that everyone has had their share of audio problems in Slackware, Well I'm going to try and get that audio working for you. First you want to know what kind of sound card you have, usually PCI so type this in:
This will let you know the audio card you have, now that you have it written down we are going to run a program to configure your card:
This will configure your sound and hopefully detect it. Well there are many reasons of why it wouldn't have detected your card, so I'm just going to make a list for you:
- alsa-driver's package isn't compiled for the kernel you are running.
- If you don't have alsa-drivers package, then your 2.6 kernel (hopefully because 2.4 doesn't have built in drivers for alsa) doesn't have the drivers compiled in.
- Your modules are screwed up :)
Now that we have all of that together, try to play an MP3 sound file as root:
Now if that plays you are good to go, but if it doesn't then you might want to check on the things above. If it doesn't work then you type this in:
Now this will show all the cards that alsa has loaded modules for and what alsa detected. Now with one driver you will see a modem occupying sound device 0. We do not want that because it will conflict. The module for the sound card is snd-intel8x0. Now we need to add the module for the modem to the blacklist:
echo "snd-intel8x0m" >> /etc/hotplug/blacklist
Now make sure you use two >'s because if you use only 1, it will overwrite the file and we do not want that. Now restart your machine and you will now have a non conflicting sound module for the intel 8x0 cards. Now we also want to change permissions:
chmod 666 /dev/dsp*
chmod 666 /dev/snd/*
Now this will make sure OSS and ALSA have permission for everyone to access the sound devices, Now in slackware 10 you just add yourself to the audio group, but Slackware 9.1 doesn't have that option. Now say you want to change the volume levels?
When you type that you will get an ncurses based mixer program:) This is great for changing volumes and muting certain things. Per default all channels are muted (alsaconf will unmute a few though). You can unmute them with M. Channels that you should watch are PCM and Master. Those often control the sound level. Now say you have the sound mixers perfect and you want to save them:
This stores the config and is restored at bootup. You can also restore later on if you screw them up to by typing the following:
There is one tip for the Sound Baster 5.1 cards, sometimes you want to MUTE digital out so you can hear on all the speakers, in alsamixer you just press M on the Analog/Digital Output Jack item.