Enemy Territory and Gentoo Linux

Just a short memo to myself…

If sound is missing in Enemy Territory, it might complain about a missing /dev/dsp device. To solve this problem, OSS emulation has to be enabled in the kernel (in my case: 3.5.7-gentoo):


Then the OSS modules have to be loaded:

modprobe snd_pcm_oss
modprobe snd_pcm_mixer

(list them in /etc/conf.d/modules to do this automatically at startup)

And finally, access to the sound device must be granted for “et”. Otherwise you’ll run into input/output errors, possibly due to a conflict with a working sound manager:

echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss

(these lines can be added to /etc/local.d/YOUR_SCRIPT_HERE.start for automatic execution at startup)