LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2004, 03:35 PM   #1
f0ad
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
Question 2.6.7 sound as non-root?


Hi all, i seem to be having some difficulties with sound in slack 10.
I have a SB Audigy (rev 03) (from: lspci). Under the 2.4.26 kernel this was no problem i was able to get it working and be able to have multiple local users use the sound.
I have upgraded to the 2.6.7 kernel that comes with slack 10, and now only root can get sound to work. If i log in under a different user, artsd gives and x error message saying the permission is denied. If i manually start artsd this is what i get:

f0ad@mercury:$./opt/kde/bin/artsd
ALSA lib pcm_hw.c:549snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
ALSA lib pcm_hw.c:549snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe

this is only under a non-root user.
if i'm logged in as root, the sound works perfectly

I checked to see if the permissions were correct on the sound devices
under /dev/sound all files have permissions 666, owner: root, group: audio
I added the user to the audio group and still nothing.

f0ad@mercury:~/$whoami
f0ad
f0ad@mercury:~/$groups
disk audio users

so i'm in there

i can think of nothing else, i've been working on this for a few days now to no avail, any help would be appreciated

Other info:
alsa sound for the audigy is compiled into the kernel, not a module


Thanx
-Justin
 
Old 08-11-2004, 04:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
ls -ld /dev/dsp*
ls -ld /dev/mix*



Cheers,
Tink
 
Old 08-11-2004, 04:55 PM   #3
f0ad
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
Hi there, thanks for the response
this is what you asked for:

root@mercury:/dev# ls -ld /dev/dsp*
lrwxrwxrwx 1 root root 9 2004-08-11 13:18 /dev/dsp -> sound/dsp
root@mercury:/dev# ls -ld /dev/mix*
lrwxrwxrwx 1 root root 11 2004-08-11 13:18 /dev/mixer -> sound/mixer


thanks alot
-Justin
 
Old 08-11-2004, 08:14 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What are the permissions on the sound-directory
itself?

ls -ld /dev/sound

I didn't realise that you're using devfs at first :)


Cheers,
Tink
 
Old 08-11-2004, 08:34 PM   #5
Jeffmrg
Member
 
Registered: Apr 2004
Distribution: kubuntu
Posts: 50

Rep: Reputation: 15
I had to work through getting sound to work, too. You might want to check the thread started by me about one week ago. Make sure that you edit your /etc/fstab file for the cdrom device. Under the options column, you should replace 'owner' with 'user' (no quotes). Otherwise your permissions will not persist across reboots.

It was also necessary to install the alsa package for the 2.6.7 kernel. The package resides on disk 2 of the slackware set.

Hope some of this helps.
 
Old 08-12-2004, 03:33 PM   #6
f0ad
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
HI there

I checked out what you said tinkster and you were right the perms were wrong
root@mercury:/dev# ls -ld sou*
drwxr-xr-x 2 root root 0 2004-08-12 12:04 sound

so i set udev to automatically reperm them on start up now it is set to
root@mercury:/dev# ls -ld sou*
drwxrwxr-x 2 root audio 0 2004-08-12 12:04 sound

this should theoretically work, however it doesn't fix the issue
artsd still gives the same error message

I also took into account what you said jeffmgr
i recompilled and reinstalled the alsa-libs, alsa-oss and alsa-utils, just in case, however this alsa didn't seem to work. I already had the fstab setup the way you suggested.

this is driving me crazy :-)

thanks again for the help
-Justin
 
Old 08-12-2004, 03:44 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The next thing you may want to check is that not
for some silly reason
a) esd is running (hogging the device)
or
b) permissions on the ALSA libraries disallow normal users
or
c) some stale .mcop and/or .kde stuff in /tmp causes it...



Cheers,
Tink
 
Old 08-12-2004, 03:49 PM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
With these permissions, sound works fine for me :

ls -l /dev/sound/*
crw-rw--w- 1 root audio 14, 12 2004-08-12 12:50 /dev/sound/adsp
crw-rw--w- 1 root audio 14, 4 2004-08-12 12:50 /dev/sound/audio
crw-rw--w- 1 root audio 14, 3 2004-08-12 12:50 /dev/sound/dsp
crw-rw--w- 1 root audio 14, 0 2004-08-12 12:50 /dev/sound/mixer

ls -ld /dev/sound
drwxr-xr-x 2 root root 0 2004-08-12 12:50 /dev/sound
 
Old 08-12-2004, 04:38 PM   #9
f0ad
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
tinkster:
i checked out what you said, and esd is not running, i removed everything in the tmp dir and as far as i can tell the perms are fine for the libs

i did however notice that if i log in with my normal user, then go an open up a term, kill off artsd then su to root THEN try to start up artsd, i get the exact same error
i wouldn't have thought that would have happened, perms and all.
So my guess is it's not the perms at all, but i cannot think of anything else to try.

thanks for all the help
-Justin
 
  


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
root sound ok - user sound not..? captain skywave SUSE / openSUSE 12 06-23-2005 05:24 PM
kde sound options gone except for root, login sound gone memphisSuseUser Linux - Distributions 2 12-10-2004 05:55 PM
user sound is fine, Root sound just squeals Doug.Gentry Linux - Newbie 1 09-05-2004 03:27 PM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM
Can only get sound as root JHuizingh Linux - Hardware 2 04-13-2003 05:34 PM

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

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