Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound for multiple users at the same time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Mon Jan 27, 2003 9:00 am    Post subject: Sound for multiple users at the same time Reply with quote

Right, I've got X running twice: once for my wife and once for myself. But, if she's the first one to log on, she takes over the sound and when I log on, I can't play anything. And vice-versa, of course.

So, my question to you is: how do I go about enabling sound for both my wife and myself at the same time?
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Mon Jan 27, 2003 9:25 am    Post subject: Reply with quote

Two sounds at once.... One of the questions asked all the time on this forum...
What exactly do you mean you can't use sound after she has logged in? Does she have some sound playing while you can't use sound?
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Mon Jan 27, 2003 11:10 am    Post subject: Reply with quote

No, let's say I log in with Openbox...

Then she logs in using KDE (3.1rc6)

She gets an error that the sound device can't be opened (Permission denied)

And the other way around.

/dev/sound:
crw------- 1 parena audio 14, 3 Jan 1 1970 dsp
crw------- 1 parena audio 14, 19 Jan 1 1970 dsp1
crw------- 1 parena audio 14, 2 Jan 1 1970 midi
crw------- 1 parena audio 14, 0 Jan 1 1970 mixer


This is what happens when I login first. If she logs in first, it's her name and group audio. I'm a total noob when it comes to the sound dev. Can I just change permissions to 770 (she's part of group audio) or what?
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Mon Jan 27, 2003 11:17 am    Post subject: Reply with quote

Hmm.. I see the problem now. Somewhere or another you need to have all the sound settings set to allow all users in the audio group to use them, not just the "owner" That will fix the problem.

Unfortunatly I think you need to edit something in some configuration file... devfsd.conf I think....
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Mon Jan 27, 2003 11:56 am    Post subject: Reply with quote

This was with devfs 'switched' off... if you have it on and change permissions, it switches them back. That's why I turned it off, wanted to see if permissions could be kept that way... but that's not a good solution, if it is any kind of solution. :(

[edit]
Yes, it worked... I chmod-ed 770 all in /dev/sound and now sound works for 2 ppl at the same time. I can even play an MP3 on "her" X screen running KDE and CTRL-F8 to mine and start another MP3. Cool...

but still, if I enable devfs again, it'll change back permissions. Maybe even with devfs still disabled...

I'll go try :)


[edit]
tried it... both with defvs enabled and disabled, it all gets set to rw------- for username.audio when someone logs in. :/

I could put "chmod 660 /dev/sound/*" in the startup scripts, but that doesn't seem like a solid solution to me...
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Mon Jan 27, 2003 1:02 pm    Post subject: Reply with quote

If you edit /etc/devfsd.conf you can set what it sets as the permissions. Min e has the following chunk for sound..
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.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660

which seems to make sound work just fine.

There is alsa a spot you can edit in that file to make it remember permissions.. But I haven't played with it much.
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Mon Jan 27, 2003 1:48 pm    Post subject: Reply with quote

Yeah, mine has that as well. But as soon as someone logs in under say KDE or Openbox, permissions get set to 600 for username.audio

Code:
LOOKUP          snd          MODLOAD ACTION snd
LOOKUP          dsp          MODLOAD
LOOKUP          mixer        MODLOAD
LOOKUP          midi         MODLOAD
REGISTER        sound/.*     PERMISSIONS root.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660


So my wife's logged into say KDE and then the permissions get changed automagically to 600 for username.audio :/ So when then I log on, using a different X server (so with my wife still logged in), I get errors why trying to play something. :/

I should find that "remember" setting then somewhere, whatever and where ever it is...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum