Post details: Sounds kinda stupid

07/03/05

Permalink 10:49:44 am, Categories: Ubuntu, 378 words   English (US)

Sounds kinda stupid

Awhile ago I had setup a Ubuntu Linux system for my mom to use. There were some issues with sound not working that I never really looked into. This morning I decided to look more into it.

Basically, the problem was that sound was not working. Looking at an 'lsmod' showed a snd-cmipci module loaded which I found out was the driver for my card (Crystal Media 8738). So I started checking log messages for any device not found messages but didn't find any. Sound applications, like Real Player, would just hang when they started. Doing an strace on them revealed them trying to open /dev/audio, /dev/dsp, or /dev/snd/pcmSomeHexCrap and just locking on that. Then I tried something simple:

echo a > /dev/audio

This should return immediately with some garbage sound sent to the device. But it didn't, and just hung.I thought it might be an IRQ or some sort of hardware conflict. I found on google mention of upgrading to a new ALSA driver (ALSA is what Ubuntu uses). So I downloaded the Alsa source, which then wanted a configured Linux kernel source. Ubuntu does not include this, and I didn't want to be fucking recompiling the kernel for sound.

So I said forget upgrading, I'll see if it's another problem. Just by chance, I SSH'ed remotely into the box and didn't login on the console. I tried the same echo command above and it worked. Then I tried aplay to play a sound and it worked. At this point sound was working when I didn't login to X. So some sound daemon X is starting is screwing things up. That narrowed it down.

I logged in on X and started looking at the lsof output of daemons that sound like they have something to do with sound :). I found esd had /dev/dsp open, and a 'killall esd' later I was able to play sounds just fine. I ended up disabling the 'sound server' via System-Preferences-Sound as explained here, which said goodbye to esd. Real Player was happy now.

A Google search comes up with mention of using '-as 2' to esd which might help. I honestly don't give a shit. This just reinforces to me the pathetic state of sound on Linux.

Comments, Pingbacks:

Comment from: nagella [Visitor]
This worked for me
Permalink 07/14/05 @ 17:30
Comment from: Kristy [Visitor]
Thank you! My poor sister has been living with Ubuntu for ages without her realplayer working (she used to constantly listen to internet radio and realplayer was the key to everything)..

I accidentally came across your blog and all I did was disable the sound server startup thing and BAM! realplayer pops up and works.

Ubuntu definately needs some work.. if an experienced linux user (I *do* use Gentoo) can't easily get sound working, that's bad.
Permalink 08/01/05 @ 21:40
Comment from: Raza [Visitor]
Thanks disabling the sound server fixed my problem. Real now works!
Permalink 08/15/05 @ 06:02
Comment from: jake [Visitor]
Many thanks viraj!!!
Permalink 09/15/05 @ 02:53
Comment from: neal [Visitor]
Excellent! A quick search with google and your website turned up. I read over you post and used the killall esd and whala! The sound just seems to magically work now. Before XMMS would just hang when I tried to play any kind of music file and now its working just fine. You guys are right ubunut needs alot of work. Its the little things that can really get to you.
Permalink 09/20/05 @ 01:14

Leave a comment:

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Viraj's Weblog

Donate to keep this site going!

Amount USD $

June 2011
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution