Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

ALSA permissions problems? / mpg123, xmms, aplay [SOLVED]

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
dogma@genus
n00b
n00b
User avatar
Posts: 3
Joined: Wed May 18, 2005 4:33 pm
Location: Ohio, US

ALSA permissions problems? / mpg123, xmms, aplay [SOLVED]

  • Quote

Post by dogma@genus » Wed May 18, 2005 4:54 pm

On my fresh Gentoo install, I have run into some problems with sound - go figure.

For example...

Code: Select all

$ aplay /usr/share/sounds/gaim/send.wav
ALSA lib confmisc.c:550:(snd_determine_driver) could not open control for card 0ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:387:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:945:(snd_func_refer) error evaluating name
ALSA lib conf.c:3463:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:3932:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2068:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:508: audio open error: Permission denied
and

Code: Select all

$ mpg123 <a mp3>
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59s-r9 (2000/Oct/27). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Can't open /dev/dsp!
XMMS gives me a similar (though ambiguous) error:

Code: Select all

failed to open audio output: ALSA 1.2.10 output plugin
While I have seen other threads regarding this (http://forums.gentoo.org/viewtopic-t-307182.html, for example), I find that it all works perfectly from root.
In reading over the above mentioned thread, I saw that in some cases /dev/sound was a file and not a directory, which is not the case in my situation. In his problem, afabco didn't mention that root worked properly. My user has audio privelages, so I don't understand the problem.
It was mentioned that using the ~x86 version of udev should help,
Frenkel wrote:This is a bug in udev. The unstable version of udev has a fix, you can emerge it this way:

# echo "sys-fs/udev ~x86" >> /etc/portage/packages.keywords
# emerge udev
but I'm not sure if that is a version issue (again, no mention of it working perfectly pre-fix in root), and don't really want to start off an install with ~x86.

I can provide all of my ALSA configuration information, but it doesn't seem important. I sense that others have had this problem, and am just trying to clarify what the most prudent solution is.
Last edited by dogma@genus on Thu May 19, 2005 2:33 pm, edited 1 time in total.
windows error: OMFG THERZZ AN ERRROR!!111 WTF??!?!?!
Linux error: hello there, you have an error. here's a detailed list of whats gone wrong and here's how to fix it, would you like some coffee?
Top
pogi
Tux's lil' helper
Tux's lil' helper
Posts: 124
Joined: Fri May 13, 2005 7:02 pm
Location: Hungary

  • Quote

Post by pogi » Wed May 18, 2005 7:17 pm

do you have the /dev/dsp link and /dev/sound dir? if yes, what are the permissions in /dev/sound?
Free! Tibet
Top
dogma@genus
n00b
n00b
User avatar
Posts: 3
Joined: Wed May 18, 2005 4:33 pm
Location: Ohio, US

  • Quote

Post by dogma@genus » Wed May 18, 2005 7:59 pm

pogi wrote:do you have the /dev/dsp link and /dev/sound dir? if yes, what are the permissions in /dev/sound?
I have:

Code: Select all

lrwxrwxrwx   1 root  root          9 May 18 05:18 dsp -> sound/dsp
and the permissions are:

Code: Select all

/dev/sound
total 0
drwxr-xr-x   2 root root       0 May 10 18:23 .
drwxr-xr-x  19 root root       0 May 18 10:19 ..
crw-------   1 root audio 14, 12 May 18 05:18 adsp
crw-------   1 root audio 14,  4 May 18 05:18 audio
crw-------   1 root audio 14,  3 May 18 05:18 dsp
crw-------   1 root audio 14,  0 May 18 05:18 mixer
crw-------   1 root audio 14,  1 May 10 18:23 sequencer
crw-------   1 root audio 14,  8 May 10 18:23 sequencer2
My user belongs to audio...

Code: Select all

uid=1000(dogma) gid=100(users) groups=10(wheel),18(audio),19(cdrom),27(video),85(usb),100(users)
windows error: OMFG THERZZ AN ERRROR!!111 WTF??!?!?!
Linux error: hello there, you have an error. here's a detailed list of whats gone wrong and here's how to fix it, would you like some coffee?
Top
mla
n00b
n00b
User avatar
Posts: 39
Joined: Mon Jan 10, 2005 11:49 am
Location: sthlm.swe

  • Quote

Post by mla » Thu May 19, 2005 8:28 am

i'm having the same problem.

though, it actually worked when i left work yesterday, and know when i came in this morning, i got this error. and no, i did not turn of my comp.

the last time i got this problem e rebooted and problem solved. but i cant find that as a solution.

something probably goes wrong with the permissions, but i cant really see what causes this.

any tips will be greatly appreciated.
Top
pogi
Tux's lil' helper
Tux's lil' helper
Posts: 124
Joined: Fri May 13, 2005 7:02 pm
Location: Hungary

  • Quote

Post by pogi » Thu May 19, 2005 9:33 am

it's just a tip, but try to edit /etc/security/console.perms, and comment the line

Code: Select all

<console>  0600 <sound>      0600 root.audio
or change it to

Code: Select all

<console>  0660 <sound>      0600 root.audio
and reboot to see if it works

pogi
Free! Tibet
Top
dogma@genus
n00b
n00b
User avatar
Posts: 3
Joined: Wed May 18, 2005 4:33 pm
Location: Ohio, US

Score!

  • Quote

Post by dogma@genus » Thu May 19, 2005 2:40 pm

That did the trick :)

Well, almost. The line has to be replaced with

Code: Select all

<console>  0660 <sound>      0660 root.audio
(note that the permission was changed to 0660 in each block)
After that, smooth sailing!
Thanks, pogi and all.

Review:
Edit /etc/security/console.perms

Code: Select all

nano /etc/security/console.perms
Go down a few pages until you see the block of specific service permissions, and modify the <sound> line as such:

Code: Select all

# permission definitions
<console>  0660 <serial>     0660 root.tty
<console>  0660 <floppy>     0660 root.floppy
# I changed this one to 0660 from 0600
<console>  0660 <sound>      0660 root.audio
<console>  0600 <cdrom>      0660 root.cdrom
<console>  0600 <pilot>      0660 root.uucp
<console>  0600 <jaz>        0660 root.disk
<console>  0600 <zip>        0660 root.disk
<console>  0600 <ls120>      0660 root.disk
<console>  0600 <scanner>    0600 root
<console>  0600 <camera>     0600 root
<console>  0600 <memstick>   0600 root
<console>  0600 <flash>      0600 root
That should do it!
Such a simple fix for such an annoying problem :roll:
windows error: OMFG THERZZ AN ERRROR!!111 WTF??!?!?!
Linux error: hello there, you have an error. here's a detailed list of whats gone wrong and here's how to fix it, would you like some coffee?
Top
mla
n00b
n00b
User avatar
Posts: 39
Joined: Mon Jan 10, 2005 11:49 am
Location: sthlm.swe

  • Quote

Post by mla » Thu May 19, 2005 3:33 pm

and if i absolutely dont want to reboot, how do i get the comp to re-read the console.perms file?
Top
The Mad Mahdi
n00b
n00b
User avatar
Posts: 70
Joined: Sun Oct 31, 2004 1:17 pm
Location: Northumberland, England, UK

  • Quote

Post by The Mad Mahdi » Thu May 19, 2005 5:20 pm

Just su to root and type:

# /etc/init.d/alsasound restart

To restart ALSA

(I just found this item myself after having sound problems with a new account. Thanks people!)
Top
pacde
n00b
n00b
Posts: 60
Joined: Tue May 03, 2005 10:17 pm

  • Quote

Post by pacde » Sat May 21, 2005 3:46 am

WOW

Ive been hunting for this solution for a while. How did you ever figure this out?
Top
troche
n00b
n00b
User avatar
Posts: 13
Joined: Thu May 12, 2005 6:55 am
Location: USA
Contact:
Contact troche
Website

  • Quote

Post by troche » Sat May 28, 2005 2:04 am

This made the trick. Thanks!!!:D
Top
tragor
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Wed May 21, 2003 6:16 pm
Location: Freiburg i.Br., Germany

  • Quote

Post by tragor » Sat May 28, 2005 8:22 am

The Mad Mahdi wrote:Just su to root and type:

# /etc/init.d/alsasound restart

To restart ALSA
*And* you should do a

Code: Select all

udevstart
as I just found out!

Thanks for saving my day btw. ! :D

tragor
Top
Post Reply

11 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy