From: Helge Hafting <helgehaf@aitel.hist.no>
To: "John J. Foster" <festus@frognet.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Sound and multiple X-servers
Date: Sun, 8 Feb 2004 15:40:52 +0100 [thread overview]
Message-ID: <20040208144052.GA16903@hh.idb.hist.no> (raw)
In-Reply-To: <1076197321.8976.3.camel@Highway-61>
On Sat, Feb 07, 2004 at 06:42:23PM -0500, John J. Foster wrote:
> Good evening,
>
> Could someone please point me to the correct resources regarding proper
> setup of the various sound devices (/dev/cdrom, /dev/mixer, etc...) and
> multiple X servers/sessions? I realize this is not the proper group, but
> I have been searching google, the XFree86 website, ALSA website,
> newsgroups, etc... and anywhere else I can think of on and off for a few
> months now. I'm currently running FedoraCore on an ASUS A7N8X Deluxe
> motherboard, but I don't really think the particular hardware or version
> of Linux is the problem. I hope it's just a missed configuration issue.
> Each of these devices seems to only be available to the first X session
> to logon.
> I've bypassed this restriction for CD Audio by creating device files for
> all 4 users of this machines, and then configuring their preferred
> cd-player app to poing at their device file. It works fine. Any
> logged-in user can now play cd's.
>
> brw------- 1 bird disk 11, 0 Dec 31 18:20 /dev/cd-bird
> brw------- 1 festus disk 11, 0 Dec 31 18:15 /dev/cd-festus
> brw------- 1 kayde disk 11, 0 Jan 8 21:09 /dev/cd-kayde
> brw------- 1 monet disk 11, 0 Dec 31 18:19 /dev/cd-monet
>
Seems you make several device nodes for the _same_ device, with different
owners. This is not the normal way to do i, are you going to
create a new set of nodes whenever there's a new user?
The usual way is to have only one node per device, and set permissions
so that all users can use the device. Let the cdrom device be owned
by some group (cdromusers). Lett all your users belong to that group,
and give the group rw permissions. Similar for other shared devices.
> My problem now is /dev/mixer, I think. Only the first logged-in user
> gets any system sounds.
>
Seems you have a lousy soundcard (or sound driver) that isn't shareable.
Several solutions:
1. Replace with a shareable card. I know the trident 4dwave cards are,
there are probably others. This is also useful when a single
user want to run two sound programs simultaneously, such as
both "system sounds" and a game and a background mp3/cd at the same time.
2. Use several cards, the best solution if your simultaneous users sit at
different locations. Each may then have his/her own set of speakers.
3. Use software mixing, there are sound daemons available for this purpose.
> Before I go further, am I missing something obvious?
Take a look at how groups & permissions works. Then think about
what kind of soundcard you want.
Helge Hafting
next prev parent reply other threads:[~2004-02-08 14:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-07 23:42 John J. Foster
2004-02-08 14:40 ` Helge Hafting [this message]
2004-02-09 18:17 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040208144052.GA16903@hh.idb.hist.no \
--to=helgehaf@aitel.hist.no \
--cc=festus@frognet.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®