Getting sound (with ALSA) to work with Slackware 10.1
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
Getting sound (with ALSA) to work with Slackware 10.1
Help! I've been trying to get any sound of my box for a few days, now...
I've been reading various things online, trying to get it work... alsaconf says i have a via8233 card and sets it up, but nothing plays even when i set all the volume in alsamixer to 100%. Where do I go next?
Right now, i'm just trying to play an mp3 file I made on my other computer, just to get sound working. I ran it through aplay, noatun, and Kaboodle. No sound came from any of them....
What exactly are the symptoms of "this thing does not work"?
In FC3 I have struggled quite a bit with Alsa. After I selected this output in XMMS, I could play files but I wouldn't hear anything. Sound would kick in after an alsactl restore. Eventually I have found the real solution was to disable the sound server in KDE (odd?).
How about non-mp3 sound? Do you hear system sounds and stuff like that? Open the control center, Sound & Multimedia -> Sound System; is "Enable the sound system" checked? If so, go to the hardware tab. What audio device is selected? Try selecting "Advanced Linux Sound Architecture" (alsa).
I tried the Control Center settings, fiddled around, but nothing's worked. And then I su'd to root and tried cat'ing a text file I found in my directory:
cat lspci.txt > /dev/dsp
but no sound came out. And yeah, I've tried both a .wav and a .mp3 file, neither plays. And if the system is beeping at me, I completely missed it.
and do you have something like this in modules.conf
Code:
-->
alias char-major-116 snd
alias snd-card-0 snd-via82xx
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
#-->
Last edited by comprookie2000; 03-27-2005 at 09:29 PM.
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.8 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-via82xx
alias sound-slot-0 snd-via82xx
# --- END: Generated by ALSACONF, do not edit.---
I ran modprobe snd-via82xx and got nothing. I tried playing some sound files and didn't get any sound played, so I'm guessing that something is still wrong.
Oh BTW I was wrong saying I had disabled the sound server in KDE. It is in KMIX I had disabled the "restore settings on startup" option. I don't know why but KMIX was messing up my mixer settings.
I was asking what were the exact symptoms because I experienced two myself:
- Permission denied to sound devices. Leads to pretty specific error popups in apps. Fixed by changing permissions.
- XMMS actually playing the songs, but no sound output is generated. Was a mixer problem.
Someone suggested to have a look at /dev/dsp. ALSA devices are actually in /dev/snd. You may want to check if you have appropriate permissions on these , eg 666. In Fedora3 they've added support for udev. This udev thing is responsible of setting default permissions on devices. You may want to see if you have /etc/udev/permissions.d/50-udev.permissions in SUSE.
"alsactl" is an utility bundled with ALSA. It's to restore or save settings into the config file. If you run "alsactl restore" as root it'll restore the mixer settings. You may want to try the following in text mode (init 3) before and after using alsactl:
locate .wav
aplay somewav
My problem is that nothing's playing, I set the permissions of /dev/snd to 0666 and I'm still not getting any sound. XMMS will play my song (but give me a message about its shared library), but no sound comes out. Same with aplay, Kaboodle, and Noatun. I'm stumped at this point, folks.
this is going to sound really dumb, but here goes (it stumped me for a bit cause it was so obvious)
When you run alsamixer, your sound levels might be up all the way, but are they unmuted? (if so, press m when highlighting master,pcm, and whatever other ones you want to unmute....)
Well, I just booted up the KDE and got a message from artsmessage that it couldn't open the sound driver because it didn't have proper permission. Now what do I do?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.