Page 1 of 1

kingpin /dev/dsp: Broken pipe

Posted: Sat May 10, 2008 20:51
by halogentan
I'm running a fresh install of Ubuntu Hardy 8.04. I kept having problems getting the sound to work. Nothing seemed to work, including a compile of ALSA, and adding alsa-oss. Here's what it was doing:
------- sound initialization -------
/dev/dsp: Broken pipe
Could not toggle.

The only way I was able to fix it was making a kludgey little script that did this:

# change permissions on oss
sudo chmod a+rw /proc/asound/card0/pcm0p/oss

# quick fix for sound
echo kingpin.x86 0 0 direct > /proc/asound/card0/pcm0p/oss

# start kingpin

Posted: Mon May 12, 2008 11:00
by kratz00
Thanks halogentan for this trick.

Today I have installed Kingpin to verify your statement and I see the same problem as you.

Changing permisson under /proc isn't a good idea because this change will be gone after a reboot.

I but the "echo" comand in my alsa boot script, which is executed on every system start and is running in root context.

I think nobody will ever fix the Kingpin Linux client, so we have to live with this workaround.

Posted: Tue May 13, 2008 8:03
by halogentan
Where can I find the alsa boot script? Can you give me an example? I'd like to do it the way you've suggested.

Posted: Tue May 13, 2008 18:19
by kratz00
I have no knowledge how Hardy handles those things.
In LFS the ALSA boot script is: /etc/rc.d/init.d/alsa
and I put the 'echo thing' in start case.

There should be a similar script, but if you are not familiar with those stuff you should better ask some Ubuntu guru :)

Posted: Tue May 13, 2008 23:41
by halogentan
Thanks, I just needed a nudge in the right direction.

"You got a dollar? I'll sell you a crowbar for a dollar."

Posted: Wed May 14, 2008 12:18
by kratz00

Closed then.