Re: Which X server gets to use sound
- From: hans_schulze98@xxxxxxxx (Hans Schulze)
- Date: 22 Jul 2005 16:32:44 -0700
f95-msv@xxxxxxxx (=?iso-8859-1?Q?M=E5rten?= Svantesson) wrote in message news:<h6b64v57bry.fsf@xxxxxxxxxxxxxxxxxxx>...
> hans_schulze98@xxxxxxxx (Hans Schulze) writes:
>
> > I am running several X servers (all with KDE), all on the same
> > monitor. How
> > do I know (and control) which one gets to use the sound output?
> > Apparently only one at a time can make sound, but sometimes none of
> > them can and usually the one I need can not.
>
> The X servers have nothing to do with the sound.
You are right. All programs using sound that I know run under X, but
that does not necessarily mean that X is needed.
> On Linux it works something like this:
> When you log in on the console the ownership of some devices,
> especially audio devices, are given to you. So, if you log in locally
> on several accounts you get in trouble.
In this case, nobody ever logs in on the text console (there may not
be any text consoles) but there are X servers. If only the active
server (the one who has the screen) gets to use sound there should be
no trouble.
> You probably have a file /etc/security/console.perms
Unfortunately not. I have no idea which script sets this. Looked but
did not find.
> manually set the permissions for your audio device to
> something appopriate you should be fine. This is a common scheme:
>
> Add all the users that should be able to use the audio-device
> to the group audio and then
>
> chown root.audio /dev/dsp
> chmod 660 /dev/dsp
Thanks Marten, these permissions work. Now everyone has audio access.
How do I set this up to start every time I run X?
Better yet, how can I change the owner of that file every time the
virtual console (vt7, vt8, ...) changes? Is there a script that gets
run on vt change?
.
- Follow-Ups:
- Re: Which X server gets to use sound
- From: Mårten Svantesson
- Re: Which X server gets to use sound
- References:
- Which X server gets to use sound
- From: Hans Schulze
- Re: Which X server gets to use sound
- From: Mårten Svantesson
- Which X server gets to use sound
- Prev by Date: Re: XFree86 Frequently Asked Questions
- Next by Date: Two questions: Docs and Events
- Previous by thread: Re: Which X server gets to use sound
- Next by thread: Re: Which X server gets to use sound
- Index(es):
Relevant Pages
|