Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By mimithebrain at 2006-06-04 22:06
You want sound, duh. Sound is cool, sound break the dulliness of your day with dings and pops. Except that if your on linux, sound, well, better hope you have one of those supported cards. Did I mention you might need to compile a kernel? How's your command line?
Stupidities to check for
Is the side knob turned on? high enough? Is the sound muted? Is "External Amplifier muted? If so, turn the sound knob up, high enough, unmute PCM and master, put them high enough, and turn External Amplifier on.
If you know the name of your card, google it! Google the name of your card and add "linux" as the last keyword. If your lucky, you will find it in the first few hits, otherwise, you may go up to the second page. You might want to try Linuxquestion's HCL too. You are looking for the name of the module to load. Possibly, if possible, if there is an already existing "howto make card xyz work on system xyz with distro zyx... use that... otherwise, just pick the name of the module to load and follow with me
Loading the modules
Once you've got the name of the module, type out lsmod and check if it's in the list.
If it is, we've got a problem, but the module is not the problem, follow on to the next paragraph.
If it's not, load it using modprobe [nameofmodule] If modprobe isn't there, either install it, upgrade your system, or use insmod.
If you built the kernel yourself, and you built it in, you should know how to debug the card already... but keep on reading the howto here
Some distros have special permission for the devices. Type
lrwxrwx--- 1 mimithebrain user blabla /dev/dsp blablablabla
you've got a permission problem.
To fix it, include your username to the audio group (if applicable to your distro, such as mandrake, or if the output to ls reports the "audio" string like in example2. Or run
chown root:audio /dev/dsp
and then include your username to the group... then
chmod 755 /dev/dsp
as root. (K/gnome menu, run command, xterm, su, enter root password, then your commands). Or do like I do and run
chown root:root /dev/dsp
chmod 777 /dev/dsp
if you are a single user, and don't fear being hacked and having someone listening to your microphone, otherwise, follow the distro's rules.
Card in use
Another stupid error is when a program is not designed to run with a sound server such as arts, esound, etc etc... If you are running KDE, install the arts plugin for the sound application you are using. For the other users, you might need to install the esound plugin... Install the plugin that fits the circonstances. If you want to know what application is using your card, type
it will report a PID, type
and compare the list, find the PID, and look what's using it. If you want to kill all the applications using the sound care, type
/sbin/fuser -k /dev/dsp
Be warned: save your documents.
How do I know it's working?
Well try it! For those who know linux slightly more, and know how to stop Xorg and escape to the console. Do that, then type
cat /dev/urandom > /dev/dsp
then control+C when you know you're done and it works.