Re: Multiple users sharing the sound card?



Craig S. Kaplan írta:
Hi everyone,

I'm a longtime GNOME user and fan. My wife and I share a desktop PC at
home. We run sessions in parallel, switching back and forth via the
user switcher applet.

Everything works great, except for sound. Ideally, the sound card would
simply be accessible to anyone currently logged into the machine (which,
after all, sits behind a firewall). That's certainly not the case --
we can't use the sound card from both sessions at the same time. But
it's worse than that -- we can't seem to reliably switch back and forth
either. If a process on my wife's session decides to play a sound, it
might take over the sound card, causing my rhythmbox to refuse to play
next time I start it. I feel like it has to do with esound, but I'm
finding it hard to know for sure.

Perhaps there ought to be some sort of fancy policy system for deciding
which users can access the sound card when. But I'd be perfectly happy
to have a promiscuous policy where all users can play sounds at the same
time. I've looked around, but I can't find good documentation on this
subject. Do I need to adjust ALSA? Esound? Gnome? Can it be done?

For the record, I'm running Ubuntu 6.10 on a machine with an M-Audio
Audiophile 2496 (the ice1712 driver under ALSA).

Thanks for any help lessening my domestic strife!


Hello,

I'm almost sure that your problem is with esound. AFAIK, esd can be
configured from the control panel (gnome-sound-properties maybe?) to run
esound only if needed; so when gnome wants to play a sound, it starts
esd, or connects to a running esd session. If your wife runs esd just at
the moment when you want to play something in rhythmbox, rhythmbox will
try to connect to esd, which will certainly refused, as your wife is
already running it.
In gentoo, there is kinda workaround for this, as you can start esound
at boot time, so (in theory, I haven't tested it yet) every user can
connect to it anytimes. If you need it, I send you this init script, it
can come handy.

Regards,
Gergely POLONKAI

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list



Relevant Pages

  • Re: Multiple users sharing the sound card?
    ... I'm a longtime GNOME user and fan. ... My wife and I share a desktop PC at ... we can't use the sound card from both sessions at the same time. ... esd, or connects to a running esd session. ...
    (GNOME)
  • Multiple users sharing the sound card?
    ... I'm a longtime GNOME user and fan. ... switching back and forth via the ... we can't use the sound card from both sessions at the same time. ...
    (GNOME)
  • Re: No sound with SDL apps
    ... >> setting that releases the sound card device after a certain time ... Since you're not using ESD, ... for instance XMMS using ESD plugin and Rhythmbox ...
    (Debian-User)
  • Re: Sound card for two applications
    ... the package is esound ... Guillermo Garron wrote: ... > I am using FC4 with an INTEL integrated sound card. ... > i have read somewhere that it is needed to install a special software ...
    (Fedora)
  • Re: Looking for cheap, good, well supported PCI-X soundcard
    ... Current Linux kernels do not support any PCI-E sound card. ... I tried Mr. Draxingers tip to use esd instead of alsa or oss, ... solved the fps-issue of WoW for me. ...
    (comp.os.linux.hardware)