Re: PulseAudio + Jack
On Wed, May 12, 2010 at 20:22, Felipe Sateler wrote: > On Wed, May 12, 2010 at 19:07, Adrian Knoth > wrote: >> I'll add both patches to the Debian package. > > I'm currently building with both patches to test it. The patch does not appear to fix the issue. I got a few successful negotiations, with the following output: Wed May 12 20:36:01 2010: Starting jack server... Wed May 12 20:36:01 2010: JACK server starting in realtime mode with priority 20 Wed May 12 20:36:01 2010: Acquired audio card Audio0 Wed May 12 20:36:01 2010: creating alsa driver ... hw:0|hw:0|64|2|44100|0|0|nomon|swmeter|-|32bit Wed May 12 20:36:01 2010: Using ALSA driver HDA-Intel running on card 0 - HDA Intel at 0xfe9fc000 irq 21 Wed May 12 20:36:01 2010: configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods Wed May 12 20:36:01 2010: ALSA: final selected sample format for capture: 32bit integer little-endian Wed May 12 20:36:01 2010: ALSA: use 2 periods for capture Wed May 12 20:36:01 2010: ALSA: final selected sample format for playback: 32bit integer little-endian Wed May 12 20:36:01 2010: ALSA: use 2 periods for playback Wed May 12 20:36:01 2010: graph reorder: new port 'system:capture_1' Wed May 12 20:36:01 2010: New client 'system' with PID 0 Wed May 12 20:36:01 2010: graph reorder: new port 'system:capture_2' Wed May 12 20:36:01 2010: graph reorder: new port 'system:playback_1' Wed May 12 20:36:01 2010: graph reorder: new port 'system:playback_2' Wed May 12 20:36:01 2010: graph reorder: new port 'system:playback_3' Wed May 12 20:36:01 2010: graph reorder: new port 'system:playback_4' THat shows the card had been successfully negotiated (and indeed, pulseaudio output stopped). However, after a few times of turning on and off jackd I got the following: Wed May 12 20:39:28 2010: Starting jack server... Wed May 12 20:39:28 2010: JACK server starting in realtime mode with priority 20 Wed May 12 20:39:29 2010: [1m [31mERROR: Failed to acquire device name : Audio0 error : Input/output error [0m Wed May 12 20:39:29 2010: [1m [31mERROR: Audio device hw:0 cannot be acquired, trying to open it anyway... [0m Wed May 12 20:39:29 2010: creating alsa driver ... hw:0|hw:0|64|2|44100|0|0|nomon|swmeter|-|32bit Wed May 12 20:39:29 2010: Using ALSA driver HDA-Intel running on card 0 - HDA Intel at 0xfe9fc000 irq 21 Wed May 12 20:39:29 2010: [1m [31mERROR: the playback device "hw:0" is already in use. Please stop the application using it and run JACK again [0m Wed May 12 20:39:29 2010: [1m [31mERROR: Cannot initialize driver [0m Wed May 12 20:39:29 2010: [1m [31mERROR: JackServer::Open() failed with -1 [0m Wed May 12 20:39:29 2010: [1m [31mERROR: Failed to start server [0m Wed May 12 20:39:29 2010: [1m [31mERROR: Failed to start server [0m I should note that sometimes, jackd does not give the card back to pulseaudio. When it doesn't starting and stopping jackd a few times solves the issue, so its possibly a race condition. -- Saludos, Felipe Sateler ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers
Re: PulseAudio + Jack
On Wed, May 12, 2010 at 19:07, Adrian Knoth wrote: > On Mon, May 10, 2010 at 12:04:17AM +0200, Adrian Knoth wrote: > >> > So, Adrian says Jack2 + PulseAudio is the philosopher's stone. Well, >> > maybe not. However, I'm having issues. >> > Jack2 is supposed to negotiate the soundcard with pulseaudio. However, >> > I need to manually deactivate pulseaudio card output to start jack. >> I tried it on my laptop yesterday. qjackctl wasn't able to start jackd >> one or two times, but then, out of a sudden, it worked. Terminating >> jackd also worked, mplayer was playing all the time to pulseaudio. >> >> Looks like a race condition or some kind of first-time hiccup. Now I > > I've been discussing this problem with nedko. > > Does "jack_control exit" solves the problem? It did for me, however, we > now have a ticket for this: > > http://trac.jackaudio.org/ticket/175 > > (check your qjackctl message window for the Input/output error message) I'm not getting that error.. I'm getting (After an almost eternal run of Saving settings to...): Wed May 12 20:07:52 2010: Starting jack server... Wed May 12 20:07:52 2010: JACK server starting in realtime mode with priority 20 Wed May 12 20:07:52 2010: Acquired audio card Audio0 Wed May 12 20:07:52 2010: creating alsa driver ... hw:0|hw:0|64|2|44100|0|0|nomon|swmeter|-|32bit Wed May 12 20:07:52 2010: Using ALSA driver HDA-Intel running on card 0 - HDA Intel at 0xfe9fc000 irq 21 Wed May 12 20:07:52 2010: [1m [31mERROR: the playback device "hw:0" is already in use. Please stop the application using it and run JACK again [0m Wed May 12 20:07:52 2010: [1m [31mERROR: Cannot initialize driver [0m Wed May 12 20:07:52 2010: [1m [31mERROR: JackServer::Open() failed with -1 [0m Wed May 12 20:07:53 2010: [1m [31mERROR: Failed to start server [0m Wed May 12 20:07:53 2010: [1m [31mERROR: Failed to start server [0m > > In addition, the current DBUS code in svn trunk is wrong, Lennart > (author of Pulseaudio) has confirmed it, so upstream surely needs to fix > it, probably like this: > > > http://repo.or.cz/w/jack2.git/commitdiff/c779cb96cc2aaffb5bb268e45feec11be0c832fa > > > There's also another changeset that adds more debugging output to find > out why a dbus reservation is failing: > > > http://repo.or.cz/w/jack2.git/commitdiff/fee353b6392e6b0de8038d7ffbcb4686891dc56d > > > I'll add both patches to the Debian package. I'm currently building with both patches to test it. -- Saludos, Felipe Sateler ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers
Re: PulseAudio + Jack
On Mon, May 10, 2010 at 12:04:17AM +0200, Adrian Knoth wrote: > > So, Adrian says Jack2 + PulseAudio is the philosopher's stone. Well, > > maybe not. However, I'm having issues. > > Jack2 is supposed to negotiate the soundcard with pulseaudio. However, > > I need to manually deactivate pulseaudio card output to start jack. > I tried it on my laptop yesterday. qjackctl wasn't able to start jackd > one or two times, but then, out of a sudden, it worked. Terminating > jackd also worked, mplayer was playing all the time to pulseaudio. > > Looks like a race condition or some kind of first-time hiccup. Now I I've been discussing this problem with nedko. Does "jack_control exit" solves the problem? It did for me, however, we now have a ticket for this: http://trac.jackaudio.org/ticket/175 (check your qjackctl message window for the Input/output error message) In addition, the current DBUS code in svn trunk is wrong, Lennart (author of Pulseaudio) has confirmed it, so upstream surely needs to fix it, probably like this: http://repo.or.cz/w/jack2.git/commitdiff/c779cb96cc2aaffb5bb268e45feec11be0c832fa There's also another changeset that adds more debugging output to find out why a dbus reservation is failing: http://repo.or.cz/w/jack2.git/commitdiff/fee353b6392e6b0de8038d7ffbcb4686891dc56d I'll add both patches to the Debian package. -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers
Re: PulseAudio + Jack
On Thu, May 06, 2010 at 02:53:59PM -0400, Felipe Sateler wrote: > So, Adrian says Jack2 + PulseAudio is the philosopher's stone. Well, > maybe not. However, I'm having issues. > Jack2 is supposed to negotiate the soundcard with pulseaudio. However, > I need to manually deactivate pulseaudio card output to start jack. I normally don't run on ALSA, so I don't have much experience with this feature. Even harder, Nedko, who implemented the DBUS card serveration for jackd2 don't run pulseaudio. > And after stopping jack, I needed to restart pulseaudio to get sound > back again. How is this setup supposed to work? BTW, I have D-Bus > support enabled in qjackctl (and I start jackd via qjacktcl). I tried it on my laptop yesterday. qjackctl wasn't able to start jackd one or two times, but then, out of a sudden, it worked. Terminating jackd also worked, mplayer was playing all the time to pulseaudio. Looks like a race condition or some kind of first-time hiccup. Now I can't even reproduce the behaviour, jackd can always acquire the card. Weird. Just my 0.02EUR -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers
Re: PulseAudio + Jack
On Thu, May 06, 2010 at 02:53:59PM -0400, Felipe Sateler wrote: > Jack2 is supposed to negotiate the soundcard with pulseaudio. However, > I need to manually deactivate pulseaudio card output to start jack. > And after stopping jack, I needed to restart pulseaudio to get sound > back again. How is this setup supposed to work? I'm not sure how this is 'supposed' to work, but one way to make this easier would be to use the pasuspender script. Regards, Arnout ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers