LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 03: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, 03:52 PM   #2
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 30
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 04:16 PM.
 
Old 10-11-2003, 04:56 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:45 PM
installing alsa 1.0.6a ... weird error steefje Linux - Software 4 10-31-2004 08:53 AM
weird sound problem - alsa, kernel 2.6, SB Live 5.1 Ben2210 Slackware 7 10-31-2004 03:36 AM
Weird ALSA errors after patching to 2.6.5 moger Slackware 4 04-06-2004 12:10 PM
weird alsa problems neuroX Linux - Software 1 01-22-2004 10:51 AM


All times are GMT -5. The time now is 12:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration