Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-03-2004, 02:53 PM
|
#1
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Rep:
|
game sound
Im running the standard slackware kernel with the standard sound system. and I installed bzflag from source and I dont get sound.
I also installed quake 3 from the binary package you can get at the ID software FTP site, and It has no sound either.
When I "cat ~/test.wav > /dev/dsp" as an unprivelaged user it makes the sound of the wav file. so I dont think its the permitions of /dev/dsp. also, i do get sound with XMMS, and even my linmodem driver (linuxant). does anyone know what else that these two games have in common that makes it so they dont have sound? and yes; I do have the volume on.
|
|
|
01-03-2004, 03:25 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
uh, yea. I read a thread earlier that XMMS uses /dev/dsp and Quake3 used /dev/dsp1 ........this guy had the same prob ---no sound......I suggested that he make a symlink for quake to use and point it to /dev/dsp..........not sure if it worked, gotta look for the thread.......
|
|
|
01-03-2004, 03:56 PM
|
#3
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Original Poster
Rep:
|
so ur saying that since /dev/dsp1 doesnt work, i should delete it and link /dev/dsp1 to /dev/dsp0 ?
|
|
|
01-03-2004, 04:25 PM
|
#4
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Original Poster
Rep:
|
well, i did that, still dont have sound with either of the games.
any other suggestions?
|
|
|
01-03-2004, 04:33 PM
|
#5
|
Senior Member
Registered: Sep 2003
Posts: 1,091
Rep:
|
I have a solution to the quake3 issue (it solved my issue)... I will post it up later.. you have to add a line to your startup script..
but before i do.. do you get any sound at all?
|
|
|
01-03-2004, 04:35 PM
|
#6
|
Member
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61
Rep:
|
Did you try to run them from terminal? I have got this problem with some games when i tried to run them directly from GUI but when i open terminal and run them from it they worked OK.
|
|
|
01-03-2004, 04:43 PM
|
#7
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Original Poster
Rep:
|
yes I have sound, xmms gives me sound and my winmodem driver from linuxant gives sound output through my speakers. plz post that solution you said worked for you.
yes, I ran it from the terminal, mostly cause i wanted to see if it gave any error messages; I didnt see any nor did I get sound. I also tried baflag from terminal, no sound.
|
|
|
01-03-2004, 05:29 PM
|
#8
|
Senior Member
Registered: Sep 2003
Posts: 1,091
Rep:
|
ok.. when runnign ET (i dont have quake 3 installed but the fix i used was for quake3) i got an error in the terminal... "could not map /dev/dsp nmap /dev/dsp" the message was something along those lines. The fix for my situatuation (and other from what i have read)
was this
my install directory is the following
/usr/local/games/enemy-territory/
in that directory i editied the "et" script (in your caseu the script should be quake3) and added the following line right after "cd "/usr/local/games/enemyterritory""
Quote:
echo "et.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
|
in your case replace et.x86 w/ quake3.x86
next I ran this command as root
chmod -R 775 /proc/asound/card0/pcm0p/
do not ask me about the secuity of the above command... may not be safe.. but i could care less if it was or wasnt
next recreate your symlink
ln -s et /bin
remember i was using ET.. but the game engines are the same.. and the fix applies to both.. so replace any ET stuff i have listed.. with the appropriate quake3 file.
thanks
trey
|
|
|
01-03-2004, 08:01 PM
|
#9
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Original Poster
Rep:
|
I restarted quake 3 and you were right about that mmap error, so I did what you said and it gave me a new error, but i tried quake 3 again and it gave me the same old error. now I cant get anything but the old error.
so where did get that info, mabee a link can help me find what else i did wrong. (unless u figured it out all ur self, then i give u credit)
|
|
|
01-03-2004, 08:57 PM
|
#10
|
Senior Member
Registered: Sep 2003
Posts: 1,091
Rep:
|
i found it on happypenguin.org...
what is the new error?? post up the script file.. and post up the new error.
|
|
|
01-03-2004, 09:41 PM
|
#11
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Original Poster
Rep:
|
ok, i did what you said and i still get this error message
------- sound initialization -------
Could not mmap dma buffer PROT_WRITE|PROT_READ
trying mmap PROT_WRITE (with associated better compatibility / less performance code)
/dev/dsp: Input/output error
Could not mmap /dev/dsp
------------------------------------
heres my quake3 script
-------------------------
#!/bin/sh
# Needed to make symlinks/shortcuts work.
# Run Quake III with some default arguments
cd "/usr/local/games/quake3"
echo "quake3.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
./quake3.x86 $*
exit $?
-------------------------
|
|
|
01-03-2004, 10:54 PM
|
#12
|
Senior Member
Registered: Sep 2003
Posts: 1,091
Rep:
|
|
|
|
02-01-2004, 07:50 AM
|
#13
|
Member
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248
Rep:
|
Do you happen to have a cs46xx based sound card (like a Turtle Beach Santa Cruz or a Hercules Game Theatre)? If so, try this thread:
http://www.linuxquestions.org/questi...threadid=43847
Incidentally, if you are relying on hotplug to load this module, you will need to blacklist it in hotplug and load it using one of your startup scripts with the correct options.
Last edited by Rodrin; 02-01-2004 at 08:03 AM.
|
|
|
02-02-2004, 10:57 PM
|
#14
|
LQ Newbie
Registered: Feb 2004
Location: Arlington, TX
Posts: 19
Rep:
|
cant you just chmod -R 775 /dev/dsp ?
im having the same prob, and would like to not have to fix every game i install, but rather set the permisions to the soundcard to all users
Last edited by Orion; 02-02-2004 at 11:01 PM.
|
|
|
02-03-2004, 02:02 AM
|
#15
|
Member
Registered: Oct 2003
Location: $RANDOM
Posts: 122
Rep:
|
I have almost the same problem I either get Quake 3 running with no sound and look in the console and it says /dev/dsp permission denied... or if I put ALSA in Arts the game locks up at the sound init part right at the start and I just get a back screen, I usally have to hit ALT + CTRL + Backspace to get out of it...
I don't see how I get a sound issue because I chmoded my amixer*, adsp*, mixer* and dsp* to 755 and it still wont work. Any sigustions?
Last edited by CryptDragoon; 02-03-2004 at 02:03 AM.
|
|
|
All times are GMT -5. The time now is 06:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|