* Sound and multiple X-servers
@ 2004-02-07 23:42 John J. Foster
2004-02-08 14:40 ` Helge Hafting
2004-02-09 18:17 ` Takashi Iwai
0 siblings, 2 replies; 3+ messages in thread
From: John J. Foster @ 2004-02-07 23:42 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]
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
My problem now is /dev/mixer, I think. Only the first logged-in user
gets any system sounds.
Before I go further, am I missing something obvious?
Please Cc: me !
Thank you all in advance,
festus
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sound and multiple X-servers
2004-02-07 23:42 Sound and multiple X-servers John J. Foster
@ 2004-02-08 14:40 ` Helge Hafting
2004-02-09 18:17 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Helge Hafting @ 2004-02-08 14:40 UTC (permalink / raw)
To: John J. Foster; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sound and multiple X-servers
2004-02-07 23:42 Sound and multiple X-servers John J. Foster
2004-02-08 14:40 ` Helge Hafting
@ 2004-02-09 18:17 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2004-02-09 18:17 UTC (permalink / raw)
To: linux-kernel
At Sat, 07 Feb 2004 18:42:23 -0500,
John J. Foster wrote:
>
> My problem now is /dev/mixer, I think. Only the first logged-in user
> gets any system sounds.
on many systems, the permissions of (some) device files are changed
dynamically via PAM for security reason. i guess you have such one?
--
Takashi Iwai <tiwai@suse.de> ALSA Developer - www.alsa-project.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-09 18:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-07 23:42 Sound and multiple X-servers John J. Foster
2004-02-08 14:40 ` Helge Hafting
2004-02-09 18:17 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox