Linux Sound Error: Could not open /dev/dsp (Solution)

General discussion relating to the Transfusion project.

Moderators: Slink, General Discussion Moderators

User avatar
Tchernobog's Love Child
Posts: 1151
Joined: Tue May 27, 2008 07:30 am
Location: Rural Alberta, Canada

Linux Sound Error: Could not open /dev/dsp (Solution)

Postby Tchernobog » Fri Jun 04, 2010 12:03 am

For those of you who are running Transfusion from a Linux based system, you may be encountering a sound error such as the one below:
Sound Initialization
/dev/dsp: No such file or directory
Could not open /dev/dsp
S_Startup: SNDDMA_Init failed.

This is not a bug in Transfusion itself, but is instead due to the outdated OSS sound system on Linux which has been giving me trouble. The only system where it worked perfectly for me was an installation of Fedora 10, but in subsequent versions the problems have came up again. I do however have a solution for this problem.

Load up a Terminal with Root privileges, and insert the following commands:
/sbin/modprobe snd_pcm_oss
chmod 777 /proc/asound/card0/pcm0p/oss

After this point, cd into the directory where Transfusion is installed and type in the following commands:
echo "transfusion-glx 0 0 direct" > /proc/asound/card0/pcm0p/oss

You should now be able to play Transfusion fully with working audio. This is not a permant fix however, and must be redone each time your Computer is restarted.

I hope in the future that Transfusion will uss the ALSA sound system rather than OSS, as more modern games do such as Doom 3 or Nexuiz.

I would like to thank Anderson Silva for his article here which taught me the commands:

Return to “Transfusion Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests