Sound problem in Linux.


(WiteRabit) #1

Hey…

I realise this is an annoying first post, but it’s difficult to have much else to say about a game when it isn’t working properly. :stuck_out_tongue:

Anyway… yeah. Can’t get any sound going. Running FC2, using the via_82xxx sound driver…
Everything else runs amazingly smoothly, just gotta get this niggly little thing out the way and it’ll be sweet… :smiley:

Error message is simply this:

------- sound initialization -------
/dev/dsp0: Input/output error
Could not mmap /dev/dsp0

Sound memory manager started
Sys_LoadDll(/home/witerabit/.etwolf/etmain/ui.mp.i386.so)…
Sys_LoadDll(/home/witerabit/.etwolf/etmain/ui.mp.i386.so) failed:
“/home/witerabit/.etwolf/etmain/ui.mp.i386.so: cannot open shared object file: No such file or directory”
Sys_LoadDll(/usr/local/games/enemy-territory/etmain/ui.mp.i386.so)… ok
Sys_LoadDll(ui) found vmMain at 0x5d61fbfc
Sys_LoadDll(ui) succeeded!

If anyone knows of any switches to get a more verbose error, that’d probably help somewhat.
I read in another thread that someone else was having a similar problem with the ui.mp.i386.so file, but the fact it seems to be pulling it fine from the /usr directory makes me think it isn’t that. (I also tried copying the file to the .etwolf/etmain directory). I’ve also tried dsp, adsp and adsp0.
Appears to be something to do with mmap … any suggestions, anyone? :smiley:


(WiteRabit) #2

Well. Don’t I feel like an idiot?
I looked back on that last line after I posted and thought I’d do a search for ‘mmap’.
Turns out someone answered this a long time ago…
Just in case anyone else has the same problem, run these commands:

do not use any alsa plugins (you probably won’t actually need this line, but it won’t hurt)

echo “et.x86 0 0 direct” > /proc/asound/card0/pcm0p/oss

this application does not use the capture device

echo “et.x86 0 0 disable” > /proc/asound/card0/pcm0c/oss

Much respect to the obviously highly knowledgable Rain. :smiley:


(Gimpsta) #3

I don’t use Linux but nice to see you took the time to post the answer.
:drink:


(Oxygen - o2) #4

Linux > windows


(Alan) #5

I also have this sound problem.
My sound card :

[alan@localhost alan]$ su
Password:
[root@localhost alan]# lspci
[...]
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
[...]

You can put the commands into a script to resolve that.
Copy this text into a file called etsound.sh

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

Give the “execution rights” to the file :

[alan@localhost alan]$ chmod u+x etsound.sh

And execute the script as root :

[alan@localhost alan]$ su
Password:
[root@localhost alan]# ./etsound.sh