lkml.org 
[lkml]   [2004]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Sound and multiple X-servers
From
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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.041 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site