LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2007, 03:05 AM   #1
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Rep: Reputation: 0
problem with /dev/dsp permissions:no sound in kde and xmms


hi,
i have alsa,esd,arts and nas installed .
the permissions on /dev/dsp are

crw-rw---- 1 root audio 14, 3 Apr 29 11:28 /dev/dsp

and on /dev/snd are

crw-rw---- 1 root audio 116, 0 Apr 29 11:28 controlC0
crw-rw---- 1 root audio 116, 24 Apr 29 11:28 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Apr 29 11:28 pcmC0D0p
crw-rw---- 1 root audio 116, 1 Apr 29 11:28 seq
crw-rw---- 1 root audio 116, 33 Apr 29 11:28 timer


my user is added as a user to the "audio" group.

however if i try to open a audio file (as non-root)with xmms i get:

ALSA lib confmisc.c:670snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391snd_func_concat) error evaluating strings
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070snd_func_refer) error evaluating name
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143snd_pcm_open_noupdate) Unknown PCM default

** WARNING **: alsa_setup(): Failed to open pcm device (default): No such device



with mplayer(as non-root):

Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
alsa-init: no soundcards found: Success
[AO ARTS] Connected to sound server.
[AO ARTS] Stream opened.
[AO ARTS] buffer size: 20480
[AO ARTS] buffer size: 2048
AO: [arts] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...


playing audio works if i do "sudo xmms" or "sudo mplayer"
the relevant line is /etc/group is:
audio:x:11:<my-user-name>

i indeed do not have read permissions over /dev/dsp:
cat /dev/dsp
cat: /dev/dsp: Permission denied

in kde's sound control,if i try setting audio device to alsa,i get no sound.there is no sound with arts either.with esd i get a error message "could no start sound server".only nas works.but audio is very choppy.this is the problem in amarok too.
the audio grup has rw permissions over /dev/dsp,and my user is a member of that group.so why is permission being denied?
 
Old 04-29-2007, 03:47 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Welcome to LQ!

What distro are you using? Please put this in your profile, it makes it easier for us to help you.

Does sound work as root?

Try adding global read and write permissions to /dev/dsp and see what happens.

--Ian
 
Old 04-29-2007, 04:35 AM   #3
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
hi,
my distro is linuxfromscratch

yes,sound works as root.(sudo mplayer and sudo xmms works)


after changing permisions of /dev/dsp to rwx for all,sound work in mplayer(both for movies and songs.).relevant part of Mplayer's console output for movie file is:

Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...

and similarly for songs too.

However xmms still does'nt work.Console output is:

** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: No such device
ALSA lib confmisc.c:670snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391snd_func_concat) error evaluating strings
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070snd_func_refer) error evaluating name
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143snd_pcm_open_noupdate) Unknown PCM default

** WARNING **: alsa_setup(): Failed to open pcm device (default): No such device


sudo xmms works.
Also,just after i changed /dev/dsp permisions to 777,KDE's sound center crashed with a SIGSEGV signal.


All this was in KDE.I have xfce installed too.In XFCE,i get the following result id /dev/dsp permision is 660(root-read/write group-read/write).
xmms does'nt give sound(same error as in kde above)
xine-ui does'nt play sound
mplayer plays sound both for songs and movie files.mplayer's console output for movie file is:

Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
alsa-init: no soundcards found: Success
[AO ARTS] can't connect to aRts soundserver
ALSA lib confmisc.c:670-(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391-(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070-(snd_func_refer) error evaluating name
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968-(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143-(snd_pcm_open_noupdate) Unknown PCM default
[AO ESD] esd_open_sound failed: Connection refused
AO: [nas] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...


With /dev/dsp permission as 777:
xmms still does'nt work(exactly same error message)
mplayer works fine
xine-ui works fine.

I must mention that xmms's ouptu plugin is set as ALSA.
 
Old 04-29-2007, 04:36 AM   #4
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
ps:Some strange html behavior.":" when enclosed in italics is printed as a smiley in replies.
 
Old 04-29-2007, 07:54 AM   #5
ferradura
Member
 
Registered: Jun 2006
Location: PT
Distribution: CRUX & Slackware
Posts: 100

Rep: Reputation: 15
Change the permissions for:
/dev/mixer
/dev/snd/timer
/dev/snd/controlC0
/dev/snd/pcmC0D0c
/dev/snd/pcmC0D0p
 
Old 04-29-2007, 01:57 PM   #6
anirudhvij
LQ Newbie
 
Registered: Apr 2007
Location: IIT-Madras ,India
Distribution: linuxfromscratch
Posts: 15

Original Poster
Rep: Reputation: 0
thanks!!
i changed /dev/mixer and everything under /dev/snd to 777.Now even sound under alsa in kde works great.
 
  


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 problem: (/dev/dsp) marco_f Linux - Software 5 05-05-2009 03:44 PM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 12:27 PM
xmms problem ... sometimes /dev/dsp busy kiranl Linux - Newbie 2 07-04-2005 07:44 AM
KDE - sound -/dev/dsp =No Such File High-gain Linux - Newbie 3 12-13-2004 08:57 AM
XMMS problem : ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): sureshrk19 Slackware 4 04-01-2004 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 PM.

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