LinuxQuestions.org
Help answer threads with 0 replies.
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 10-11-2003, 02:18 PM   #1
kailun
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
Weird ALSA problem


Hi,

I'm using ALSA to try get sound working through my card (It's an ESS Maestro 2E on my laptop).

I've got it to work as root - it's fine there. BUT...

I realised that it wasn't working for any normal users, so I figured it would be the permissions. I have done a chmod 666 on just about every single file ALSA says it uses (mainly all in the dev dir). At first I got a load of permission denied errors for various /dev's, but after some heavy chmodding, they went away. However, now I'm truly stumped... I'm getting a permission denied error for the executables... (they are fine - I check the permissions) amixer and aplay respectively and possibly all the others that ALSA uses.

I have searched for about the whole day on how to fix this, but to no avail. The exact error I'm getting when running amixer is:

amixer: Mixer attach defaul error: Permission Denied

and with aplay:

aplay: main: 484: audio open error: Permission denied

These both work fine when I'm root, but otherwise, no go.

Also, across many posts I have read, they say that usually ALSA sets up a group called 'Audio' which you can add a user to to gain permissions. However, ALSA here on a fresh install of Slackware 9.1, hasn't set up any such groups.

If anyone here can help me, then it would be greatly appreciated.

Kai
 
Old 10-11-2003, 02:52 PM   #2
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
If you're using the devfs you can add something like this:

Code:
# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP          snd          MODLOAD ACTION snd
LOOKUP          dsp          MODLOAD
LOOKUP          mixer        MODLOAD
LOOKUP          midi         MODLOAD
REGISTER        sound/.*     PERMISSIONS root.users 660
REGISTER        snd/.*       PERMISSIONS root.users 660
(It usually defaults to root.audio but I "adjust" it on purpose to make it easier and more convenient)

That'll set the permissions right automatically but chmodding should be enough if you're using the old static device nodes. It definitely sounds like somethings out of whack with the permissions on the audio devices though as that seems to be where the permission denied errors are originating from.

Last edited by LSD; 10-11-2003 at 03:16 PM.
 
Old 10-11-2003, 03:56 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
uh, slackware 9 and 9.1 have a prob, both installs put /dev/dsp and /dev/mixer in the sys group......it should be in "root' group......change this and give your user exe access to them........they should then work for 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
Weird ALSA Errors Mr_Munkey Linux - Hardware 4 06-10-2005 07:45 PM
installing alsa 1.0.6a ... weird error steefje Linux - Software 4 10-31-2004 07:53 AM
weird sound problem - alsa, kernel 2.6, SB Live 5.1 Ben2210 Slackware 7 10-31-2004 02:36 AM
Weird ALSA errors after patching to 2.6.5 moger Slackware 4 04-06-2004 11:10 AM
weird alsa problems neuroX Linux - Software 1 01-22-2004 09:51 AM

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

All times are GMT -5. The time now is 11:45 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