Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a fresh install of Ubuntu 11.10 64-bit. I've read the Doom 3 guide here:

and installed Doom 3 successfully. It runs but the sound is horrible (very static-y). The terminal output is filled with these repeating lines:

snd_pcm_writei 4096 frames failed: Broken pipe
preparing audio device for output
snd_pcm_writei 4096 frames failed: Broken pipe
preparing audio device for output

I've tried using the following:

doom3 +set s_driver oss +set s_numberOfSpeakers 2

but when I do there is no sound at all. This was in the terminal output:

    ------ OSS Sound Initialization ------
    WARNING: failed to open sound device '/dev/dsp': No such file or directory
    WARNING: sound subsystem disabled

Can anyone explain what the 'snd_pcm_writei 4096 frames failed: Broken pipe' error means and how to fix it so the sound plays normally?

share|improve this question
Here are some advices. Check it.… – PocketSam Nov 6 '11 at 16:49
Maybe you should kill pulseaudio server and run a game with oss driver. Someone at Ubuntu Forums says it helped – PocketSam Nov 6 '11 at 16:51
Yup. Already read the page - that's where I got the idea to use the '+set s_driver oss'. – user27451 Nov 9 '11 at 12:10

Try to run a game with the following commmand.

pasuspender ./doom3.x86

Or try these:

sudo apt-get install alsa-oss

quake3 +set s_driver oss +set s_numberOfSpeakers 2

aoss quake4
share|improve this answer
Two questions - what does pasuspender do? Second - I thought I had alsa already installed (when I ran another program under Wine I noticed it was using an alsa driver for sound and that program's sound worked fine.) If I don't have it installed and I install it like you suggested will it overwrite/remove the default Ubuntu 11.10 audio? – user27451 Nov 9 '11 at 12:08
pasuspender disables PulseAudio for an app. As I remember it wouldn't affect your existing installation, it just add oss drivers for alsa. Anyway, you can always purge this package. – PocketSam Nov 15 '11 at 8:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.