|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Setting pulse not to grab a particular sound deviceI've been lurking round the jack-devel list, following the dbus
'thread' (I believe something of this magnitude is more a rope than a thread, though). Someone mentioned PA grabbing everything, in the case of more than one sound cards in the machine (as is the case with all pro-audio setups, I believe). Besides the solution that Lennart mentioned, pavucontrol, this can be automated by editing /etc/pulse/default.pa, removing the lines concerning module-hal-detect, and manually loading module-alsa-sink/source with the correct hw parameters. This would be more convenient for scripts/packagers, whatever. _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
Re: Setting pulse not to grab a particular sound deviceOn Wed, 17.06.09 07:04, Ng Oon-Ee (ngoonee@...) wrote:
> I've been lurking round the jack-devel list, following the dbus > 'thread' (I believe something of this magnitude is more a rope than a > thread, though). Someone mentioned PA grabbing everything, in the case > of more than one sound cards in the machine (as is the case with all > pro-audio setups, I believe). > > Besides the solution that Lennart mentioned, pavucontrol, this can be > automated by editing /etc/pulse/default.pa, removing the lines > concerning module-hal-detect, and manually loading > module-alsa-sink/source with the correct hw parameters. This would be > more convenient for scripts/packagers, whatever. Which I can only advise against. For many reasons: breaks hotplug, module-alsa-sink/-source are obsolete, unstable device names, and so on and so on. Just use pavucontrol or just upgrade to JACK2 and everything starts to work witout any further intervention due to the mentioned device reservation logic. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net http://0pointer.net/lennart/ GnuPG 0x1A015CC4 _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
Re: Setting pulse not to grab a particular sound deviceOn Wed, 2009-06-17 at 01:29 +0200, Lennart Poettering wrote:
> On Wed, 17.06.09 07:04, Ng Oon-Ee (ngoonee@...) wrote: > > > I've been lurking round the jack-devel list, following the dbus > > 'thread' (I believe something of this magnitude is more a rope than a > > thread, though). Someone mentioned PA grabbing everything, in the case > > of more than one sound cards in the machine (as is the case with all > > pro-audio setups, I believe). > > > > Besides the solution that Lennart mentioned, pavucontrol, this can be > > automated by editing /etc/pulse/default.pa, removing the lines > > concerning module-hal-detect, and manually loading > > module-alsa-sink/source with the correct hw parameters. This would be > > more convenient for scripts/packagers, whatever. > > Which I can only advise against. For many reasons: breaks hotplug, > module-alsa-sink/-source are obsolete, unstable device names, and so > on and so on. > > Just use pavucontrol or just upgrade to JACK2 and everything starts to > work witout any further intervention due to the mentioned device > reservation logic. > > Lennart > Hi Lennart, Would there be a script-based alternative to the pavucontrol method, then? Or is Jack2 'it' in that sense? As I have previously mentioned on the pulse list, the reason I turn off hotplug through HAL is so I can, through scripts, define whether I want PA accessing my sound card or my jack server (via module-jack-sink/source). I admit to a lack of understanding on the specifics of the new JACK2 device reservation, as well as the dbus hoo-ha surrounding it, but it seems to me that the general effect would be to suspend PA totally when JACK2 starts and resume it when JACK2 finishes. Is this understanding correct? _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
Re: Setting pulse not to grab a particular sound deviceOn Wed, 17.06.09 07:35, Ng Oon-Ee (ngoonee@...) wrote:
> Hi Lennart, > > Would there be a script-based alternative to the pavucontrol method, > then? Or is Jack2 'it' in that sense? pactl set-card-profile foo off > As I have previously mentioned on the pulse list, the reason I turn off > hotplug through HAL is so I can, through scripts, define whether I want > PA accessing my sound card or my jack server (via > module-jack-sink/source). I admit to a lack of understanding on the > specifics of the new JACK2 device reservation, as well as the dbus > hoo-ha surrounding it, but it seems to me that the general effect would > be to suspend PA totally when JACK2 starts and resume it when JACK2 > finishes. Is this understanding correct? The device reservation logic is (as the name suggests...) per device. i.e. only the device jack asks for will be released. And when JACK goes away PA will again take posession of it. While the device is taken by jack it is marked 'suspended' in PA. And what I was proposing at the beginning of that other thread is that if Jack takes a service name on the bus PA could watch for it and load the connectivity modules automatically, providing some ports in jack that folks can connect if they wish. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net http://0pointer.net/lennart/ GnuPG 0x1A015CC4 _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
|
|
|
Re: Setting pulse not to grab a particular sound deviceOn Wed, 2009-06-17 at 01:57 +0200, Lennart Poettering wrote:
> On Wed, 17.06.09 07:35, Ng Oon-Ee (ngoonee@...) wrote: > > > Hi Lennart, > > > > Would there be a script-based alternative to the pavucontrol method, > > then? Or is Jack2 'it' in that sense? > > pactl set-card-profile foo off > > > As I have previously mentioned on the pulse list, the reason I turn off > > hotplug through HAL is so I can, through scripts, define whether I want > > PA accessing my sound card or my jack server (via > > module-jack-sink/source). I admit to a lack of understanding on the > > specifics of the new JACK2 device reservation, as well as the dbus > > hoo-ha surrounding it, but it seems to me that the general effect would > > be to suspend PA totally when JACK2 starts and resume it when JACK2 > > finishes. Is this understanding correct? > > The device reservation logic is (as the name suggests...) per > device. i.e. only the device jack asks for will be released. And when > JACK goes away PA will again take posession of it. While the device is > taken by jack it is marked 'suspended' in PA. > > And what I was proposing at the beginning of that other thread is that > if Jack takes a service name on the bus PA could watch for it and load > the connectivity modules automatically, providing some ports in jack > that folks can connect if they wish. > > Lennart > Thank you. That does indeed seem a simple and powerful way of handling it (ref. your last paragraph). Apologies to others on this list for the non-dbus-related noise. _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
Re: Setting pulse not to grab a particular sound deviceOn 06/17/2009 06:57 AM, Lennart Poettering wrote: On Wed, 17.06.09 07:35, Ng Oon-Ee (ngoonee@...) wrote: I missed this initial post. IMO, this is the final step in the fundamental logic required to have jack and pa work together nicely. >From there on it would be a matter of enough people testing the system to fine tune the stability. My machine is now fully updated with fedora 11 so I will be very happy to assist with testing this proposed solution. Please let me know what I can do to help. Cheers. Patrick Shirkey Boost Hardware Ltd _______________________________________________ Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
Re: Setting pulse not to grab a particular sound deviceObsolete? You mean to tell us that the only provided means to do a
full manual configuration (not depending on HAL/Hotplug) will be removed?! Not everyone wants Plug-n-Pray! Melanie Lennart Poettering wrote: > On Wed, 17.06.09 07:04, Ng Oon-Ee (ngoonee@...) wrote: > >> I've been lurking round the jack-devel list, following the dbus >> 'thread' (I believe something of this magnitude is more a rope than a >> thread, though). Someone mentioned PA grabbing everything, in the case >> of more than one sound cards in the machine (as is the case with all >> pro-audio setups, I believe). >> >> Besides the solution that Lennart mentioned, pavucontrol, this can be >> automated by editing /etc/pulse/default.pa, removing the lines >> concerning module-hal-detect, and manually loading >> module-alsa-sink/source with the correct hw parameters. This would be >> more convenient for scripts/packagers, whatever. > > Which I can only advise against. For many reasons: breaks hotplug, > module-alsa-sink/-source are obsolete, unstable device names, and so > on and so on. > > Just use pavucontrol or just upgrade to JACK2 and everything starts to > work witout any further intervention due to the mentioned device > reservation logic. > > Lennart > Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
|
|
|
|
|
|
|
|
Re: Setting pulse not to grab a particular sound deviceWell, I already gathered that you are the one who is in favor of a
completely automagical solution - however, I like control, as fine-grained control as possible. So I have to spend a day on setting up a new system - but afterwards I know exactly what it does and why. No unpleasant surprises later on when hardware is added/removed, or things switched from one USB port to another, etc, etc, etc... Not saying that autoconfiguration and plug&play are evil, they're just not what I want in my Linux. Melanie Lennart Poettering wrote: > On Wed, 17.06.09 11:50, Melanie (melanie@...) wrote: > >> >> Obsolete? You mean to tell us that the only provided means to do a full >> manual configuration (not depending on HAL/Hotplug) will be removed?! >> Not everyone wants Plug-n-Pray! > > module-alsa-sink/-source are useful only in very few cases. It's far > more useful to use module-alsa-card, which is a combination of both > but a bit more intelligent in many ways. > > Also, I don't see why manual configuration could have any benefit here. > > Lennart > Jack-Devel mailing list Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org |
| Free embeddable forum powered by Nabble | Forum Help |