You are not logged in.
Pages: 1
Well after the last upgrade off ESD alsa doesn't work correctly. When I play with sonata i get the following error:
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
I killed the ESD process and alsa (Sonata) works again , how can I fix this problem?
Last edited by YscO (2007-05-17 16:07:10)
Offline
Apparently, you can't (read last comments and work backwards if you want) :
http://bugs.archlinux.org/task/6544
I am much appreciative of all the work the Linux Devs do, but telling me to buy a decent sound card may need a bit more follow up. For example, I have a DV8000 laptop -- can you suggest some decent PCMCIA or USB sound cards? I'm not b*tching here, mind you, I just want to know what "decent" is and what others are doing. Apparently something in dmix isn't playing well with others at this time, so hopefully that will be fixed.
As for now, bye bye ESD.
(Oh, and it was my understanding that most sound cards not DON'T do hardware mixing no matter how decent -- or expensive -- they are.)
Matt
"It is very difficult to educate the educated."
Offline
Lolz, I think a nForce2 MCP2-T is a decent soundcard
Thanks for the url.
Offline
My two sound blaster card (live and audigy 2) do hardware mixing, the audigy 2 is already a few years old, and the live even more, and they weren't really expensive even then.
So that's what I would call decent cards.
If you have a laptop, then you just have to deal with the crappy integrated audio chipset
As an alternative, use decent softwares that support alsa correctly, and remove that esd crap
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
You may want to have a look at PulseAudio (http://pulseaudio.org/). I've heard it's set to replace esd. I haven't tried it but it's available through the community repo.
Offline
Just for the archives
Follow the link for a better description of the problem.
Solution that works for me with gnome (I use alsa):
Go to >> Preferences >> sound >> [TAB] Sounds >> disable software sound mixing using ESD
Last edited by YscO (2007-05-17 18:41:19)
Offline
Just curious, how would one run audacity under Alsa? alsa-oss? Am I confusing things here? Does the following statements hold true or false:
ESD != OSS
ESD != ALSA
ALSA != OSS <-- (and I have ALSA and OSS choices in my sound stuff. Should one be "removed"? Is OSS a kernel thing that requires me blacklisting MODs?)
Matt
"It is very difficult to educate the educated."
Offline
Oh, and another question. Suppose I want to dump ESD. I don't have it running in the rc.conf or anything, but a "pacman -R esd" shows that it has the following dependencies:
arts
libao
libgnome
musepack-tools
xnine-lib
xmms
Can I just leave ESD out of rc.conf and that be "good enough" for making it unused on my system, or should I dump xmms, xine and such.
Has anyone tried pulseaudio and do they like it?
Matt
"It is very difficult to educate the educated."
Offline
Don't place it in rc.conf and it should be enough, but some graphical desktop environments (for example Gnome) load esd on startup.
Can't help you with the other questions
Last edited by YscO (2007-05-17 20:06:29)
Offline
Just curious, how would one run audacity under Alsa? alsa-oss? Am I confusing things here? Does the following statements hold true or false:
ESD != OSS
ESD != ALSA
ALSA != OSS <-- (and I have ALSA and OSS choices in my sound stuff. Should one be "removed"? Is OSS a kernel thing that requires me blacklisting MODs?)
alsa and oss are the two sound systems available in the kernel. oss is deprecated though, and has been replaced by alsa.
It's still available in the kernel (afaik, because of some regressions with some alsa drivers), but arch kernel has it disabled, so you only have alsa modules available by default in arch.
For compatibility with apps still using oss, alsa provides oss emulation.
That's the case of last stable version of audacity, which only supports oss. However, he 1.3 beta version has alsa support, but I don't know how good that is.
Then sound servers come at a higher level, between applications and either oss or alsa, so that causes overheads and additional latencies, as well as an additional place where things can go wrong
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I solved this by downgrading the ESD package
Offline
The point here is that ESD hangs completely when using alsa on many systems. Something happens inside alsa, esd gets confused and locks up the client. No fun here.
So I disabled alsa support in esd completely. Then we have the next problem: alsa dmix doesnt work with OSS emulation it seems...
So, it's one of these options:
- buy a decent soundcard that doesn't need dmix
- Don't use esound
- pipe everything through esound
Option 1 is what I did 3 years ago, option 2 is what's standard and option 3 is the way things worked when dmix didn't exist.
Offline
@shining:
In my System -> Preferences -> Sound (in Gnome) I have both ALSA and OSS showing up in my drop-down lists. Should OSS be gone? I leave the thing on "Autodetect" and I do have sound from apps. the only thing I don't get is "System Sounds" -- the dings and tinkles that occur when you're clicking things. This is because enabling ESD causes problems and you can't have System Sounds without ESD (right?).
Audacity also has selections for OSS and ALSA, though selecting the ALSA settings DOESN'T work. I have to use OSS in Audacity.
Here is a screenshot of what I'm talking about:
http://www.bigpony.com/linuxscreenshots … rences.png
Is my system screwed up, do I need to find a way to disable OSS (as in, never see it in any lists)? If so, I guess Audacity is gone until the beta is released. Do I need alsa-oss installed?
Thanks for the answers!
Matt
"It is very difficult to educate the educated."
Offline
@shining:
In my System -> Preferences -> Sound (in Gnome) I have both ALSA and OSS showing up in my drop-down lists. Should OSS be gone? I leave the thing on "Autodetect" and I do have sound from apps. the only thing I don't get is "System Sounds" -- the dings and tinkles that occur when you're clicking things. This is because enabling ESD causes problems and you can't have System Sounds without ESD (right?).
Even if you're using alsa, it doesn't mean oss is not available, because of oss emulation in alsa.
Besides, I don't know about this particular case, but I think that at least sometimes, applications don't try to detect which is available, oss or alsa, they just list all sound systems they support and let the choice up to you.
So in any cases, it shouldn't matter that oss is there.
I guess that for this gnome settings, autodetect should be fine, but you could try choosing alsa explicitly.
I don't know about system sounds in gnome, and system sounds annoy me anyway
I only know that in kde, if you only disable their sound server (arts), system sounds will stop working. But you can specify a command for playing system sounds, and so you can use a little command line sound player supporting alsa there.
I'm not sure if gnome allows the same.
Audacity also has selections for OSS and ALSA, though selecting the ALSA settings DOESN'T work. I have to use OSS in Audacity.
I see that archlinux already has the beta 1.3 version of audacity.
See here : http://audacity.sourceforge.net/ -> last stable is 1.2.6 and last beta is 1.3.3
Though arch only has 1.3.2 ( http://archlinux.org/packages/search/?q=audacity ), but that should still work with alsa.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
OK, thanks shining.
I do have 1.3.2 of Audacity installed, but when selecting anything except OSS ("Playback: OSS (/dev/dsp)" in the preferences of Audacity) I get no sound. Again, I don't have alsa-oss installed. Could that be the problem? Just curious. I'm OK as is.
Thanks again for all the help.
Matt
"It is very difficult to educate the educated."
Offline
I do have 1.3.2 of Audacity installed, but when selecting anything except OSS ("Playback: OSS (/dev/dsp)" in the preferences of Audacity) I get no sound. Again, I don't have alsa-oss installed. Could that be the problem? Just curious. I'm OK as is.
I don't understand what that alsa-oss is :
current/alsa-oss 1.0.12-1
OSS compatibility library
I thought oss didn't have a library model, and only provided the /dev/dsp device, that the applications use.
Using the oss emulation of alsa, you just need to have the snd-{seq,pcm,mixer}-oss modules loaded, which should give you the /dev/dsp device, and that should be enough.
So I'm not sure what that alsa-oss lib is, but I'm nearly sure it isn't needed for using oss.
In any cases, it's certainly not needed for using alsa directly
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Solution that works for me with gnome (I use alsa):
Go to >> Preferences >> sound >> [TAB] Sounds >> disable software sound mixing using ESD
Using this fix for now
Last edited by HighD (2007-05-29 03:58:43)
"...Success means having the courage, the determination, and the will to become the person you believe you were meant to be..."
George Sheehan quotes (American physician, author and running enthusiast, 1918 - 1993)
Offline
Well, the latest upgrade of the Kernel and alsa stuff seemed to have fixed the lockups. I can hear sound now when enabling system sounds AND not get lockups. I just have to STOP esd before getting sound out of VLC (and probably some other stuff -- haven't tested all that yet).
Thanks guys!
Last edited by mrunion (2007-05-29 15:43:26)
Matt
"It is very difficult to educate the educated."
Offline
Guys, build esd with --enable-alsa instead of the default --disable-alsa that is in the PKGBUILD, and then you can use esd and play music and such.
Offline
Guys, build esd with --enable-alsa instead of the default --disable-alsa that is in the PKGBUILD, and then you can use esd and play music and such.
it's always been built with alsa, I don't know why it was changed. but thanks for pointing it out, explains why my esd aint been working.
James
Offline
Does one just "download" the source for esound (esd) and compile it? Do we blacklist esd after that? Just some quick pointers would be helpful.
Matt
"It is very difficult to educate the educated."
Offline
Do this: cd /var/abs/daemons/esd && sed -i 's/--disable-alsa/--enable-alsa/' PKGBUILD && makepkg -i - Do it as root, or whatever user has permissions to do stuff on /var/abs/* (not /var/abs/local)
Offline
Cool! Thanks! I really REALLY need to read up on some basic commands (a.k.a. what "sed" is doing, etc.)
Matt
"It is very difficult to educate the educated."
Offline
Pages: 1