LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-04-2004, 03:45 AM   #1
hnad
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Schlack!
Posts: 26

Rep: Reputation: 15
Help Please - Sound problem with permissions


Hi

Relatively new to slack but been plugging away at it for the last couple of weeks. Havn't had any problems with anything until I decided to put one of my games on there.

Installed Quake3 and while there were no problems with the install but then I found when I ran it there was no sound.

Looking back at the terminal it said /dev/dsp permission denied. I ran Quake3 as root and the sound worked.

So I did a chmod -R 775 /dev/dsp - think that was right - read it somewhere else. Anyway it didn't fix the problem and now I have further problem with Mplayer. Mplayer worked before I did this but now I get the following error:

ALSA lib pcm_hw.c:1055snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Permission denied

If I run it as root, again the sound works.

So i guess I've stuffed up permissions somewhere. :/

Can anyone help me with permissions for this stuff? Or at least put me onto the right track as to where to look. Bit lost at the moment.

It's Slackware 9.1
Sound card is an Audigy

Ta

Last edited by hnad; 04-04-2004 at 03:52 AM.
 
Old 04-04-2004, 03:57 AM   #2
George666
Member
 
Registered: Nov 2003
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
chmod 775 /dev/snd/*

This should do it..
 
Old 04-04-2004, 04:14 AM   #3
hnad
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Schlack!
Posts: 26

Original Poster
Rep: Reputation: 15
yeh permission problem error gone. Now I got something else.

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
SDL: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: using esd audio driver
SDL: Unable to open audio: No available audio device
Could not open/initialize audio device -> no sound.
Audio: no sound

Last edited by hnad; 04-04-2004 at 04:16 AM.
 
Old 04-04-2004, 04:21 AM   #4
hnad
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Schlack!
Posts: 26

Original Poster
Rep: Reputation: 15
Seems I've stuffed a few things up. :/

Tried opening alsamixer

alsamixer: function snd_ctl_open failed for default: Permission denied

If I try and run xmms i get:

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Permission denied


No idea what I've done. Everything works if I run it as root.

Last edited by hnad; 04-04-2004 at 04:36 AM.
 
Old 04-04-2004, 10:17 AM   #5
George666
Member
 
Registered: Nov 2003
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Maybe you should chmod everything to 777 (/dev/dsp /dev/mixer /dev/snd/* )
 
Old 04-04-2004, 09:25 PM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
SDL: using esd audio driver

Since you're using alsa, esd is not likely even installed. Is there a way to change what sound system that Quake uses? You may want to find a Quake forum about that one if its not too clear. I may be wrong about this, but I do know that I fixed the same problem with xmms by changing from oss to alsa
 
Old 04-05-2004, 12:19 AM   #7
hnad
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Schlack!
Posts: 26

Original Poster
Rep: Reputation: 15
Hi, at work so I can't try it at the moment.

In your the quake config you can specify the sound device. Although I'm not too sure which device I should be specifying. Obviously I'm using ALSA but what would I call that? Is it simply /dev/snd/alsa?

For XMMS where do I change that? Wierd thing is, all this was working until I installed Quake3 and changed the permission on /dev/dsp (chmod -R 775) - Read somewhere on another forum that this was a fix. Anyway it didn't fix anything. Just stuffed everything else up further.
 
Old 04-05-2004, 03:56 AM   #8
huntz
Member
 
Registered: Sep 2003
Location: Aussie
Distribution: shlackoes
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by George666
Maybe you should chmod everything to 777 (/dev/dsp /dev/mixer /dev/snd/* )
Awsome, that fixed it.

I guess that just gave r w x to everything on my computer eh? Love to know how I stuffed it up in the first place. :P

But thanks.
 
Old 04-05-2004, 10:00 AM   #9
alhobbel
LQ Newbie
 
Registered: Mar 2004
Location: The Netherlands
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
I think the proper procedure would be to make some yourself part of the 'sys' group. Then you would be able to play music, while your brother (or any other evil creature) can't blow up your speakers.

Just edit /etc/group.
 
Old 04-06-2009, 10:34 AM   #10
srsanka
LQ Newbie
 
Registered: Dec 2008
Location: USA
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Just add yourself to "/etc/group" --> audio

I had the same problem all of a sudden. Stumbled upon this thread. I added my username to audio in "/etc/group". And the sound is restored!

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sound as user permissions problem farpoint Debian 5 07-03-2005 06:53 AM
sound permissions - not what you think!!! cvt Mandriva 1 04-13-2005 02:09 PM
Very Weird Sound Problem....Permissions? rm6990 Fedora 2 08-12-2004 05:17 AM
sound permissions drrnsk8ter4 Linux - Software 5 04-11-2004 07:41 PM
Sound permissions? Linux~Powered Linux - Software 14 02-08-2004 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration