Page 1 of 1

guitar + Behringer UCG102 + Jack didn't work

Posted: Wed May 01, 2013 10:14 pm
by lukasz124
Hi!

I'm trying to play and record guitar. I'm using Ubuntu 13.04. I added myself to "audio" group and installed QJackCtl (0.3.9). Before starting Jack i can see in messages window this:
00:05:55.885 Patchbay deactivated.
00:05:56.002 Statistics reset.
00:05:56.146 ALSA connection change.
00:05:56.803 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = Nie ma takiego pliku ani katalogu
Cannot connect to server request channel
jack server is not running or cannot be started
00:05:56.839 ALSA connection graph change.
"Nie ma takiego pliku ani katalogu" means "No such file or directory".

After start i can't hear anything from the speakers and in the messages window appears:
00:07:53.269 D-BUS: JACK server is starting...
Cannot connect to server socket err = Nie ma takiego pliku ani katalogu
Cannot connect to server request channel
jack server is not running or cannot be started
00:07:53.358 D-BUS: JACK server was started (org.jackaudio.service aka jackdbus).
Thu May 2 00:07:52 2013: Starting jack server...
Thu May 2 00:07:53 2013: JACK server starting in realtime mode with priority 10
Thu May 2 00:07:53 2013: [1m[31mERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)[0m
Thu May 2 00:07:53 2013: Acquired audio card Audio1
Thu May 2 00:07:53 2013: creating alsa driver ... hw:1|hw:1|256|2|44100|1|0|nomon|swmeter|-|16bit
Thu May 2 00:07:53 2013: configuring for 44100Hz, period = 256 frames (5.8 ms), buffer = 2 periods
Thu May 2 00:07:53 2013: ALSA: final selected sample format for capture: 16bit little-endian
Thu May 2 00:07:53 2013: ALSA: use 2 periods for capture
Thu May 2 00:07:53 2013: ALSA: final selected sample format for playback: 16bit little-endian
Thu May 2 00:07:53 2013: ALSA: use 2 periods for playback
Thu May 2 00:07:53 2013: [1m[31mERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)[0m
Thu May 2 00:07:53 2013: [1m[31mERROR: AcquireSelfRealTime error[0m
Thu May 2 00:07:53 2013: graph reorder: new port 'system:capture_1'
Thu May 2 00:07:53 2013: New client 'system' with PID 0
Thu May 2 00:07:53 2013: graph reorder: new port 'system:playback_1'
Thu May 2 00:07:53 2013: graph reorder: new port 'system:playback_2'
Thu May 2 00:07:54 2013: Saving settings to "/home/lukasz/.config/jack/conf.xml" ...
00:07:56.706 JACK connection change.
00:07:56.712 Server configuration saved to "/home/lukasz/.jackdrc".
00:07:56.714 Statistics reset.
00:07:56.730 Client activated.
00:07:56.762 JACK connection graph change.
Cannot lock down 82274202 byte memory area (Nie można przydzielić pamięci)
Thu May 2 00:07:56 2013: New client 'qjackctl' with PID 2951
00:08:00.989 XRUN callback (1).
00:08:17.971 XRUN callback (2).
00:08:29.257 XRUN callback (3).
00:08:43.557 XRUN callback (4).
00:08:48.265 XRUN callback (5).
00:08:50.083 XRUN callback (6).
00:08:51.289 XRUN callback (7).
00:08:52.757 XRUN callback (8).
00:08:53.202 XRUN callback (1 skipped).
00:08:56.565 XRUN callback (9).
00:08:58.765 XRUN callback (10).
00:09:03.857 XRUN callback (11).
00:09:05.057 XRUN callback (12).
"Nie można przydzielić pamięci" means "Can't allocate memory"

My soundcards:
my soundcards
my soundcards
arecord.png (41.83 KiB) Viewed 723 times
My setup:
my setup
my setup
setup.png (119.17 KiB) Viewed 723 times
Did anyone know, what can I do with it?

Re: guitar + Behringer UCG102 + Jack didn't work

Posted: Wed May 01, 2013 11:26 pm
by AnthonyCFox
Try setting the input and output devices to hw:CODEC,1 [USB Audio] The number might be different but it should say [USB Audio]

I use the Behringer also, though I use Cadence instead of QJackCTL. You'll be getting your audio out from the Behringer with this set up.

Re: guitar + Behringer UCG102 + Jack didn't work

Posted: Thu May 02, 2013 6:40 am
by Pablo
Firstly, these messages show that you don't have realtime and memlock privileges:
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling
Do a:

Code: Select all

sudo dpkg-reconfigure -p high jackd2
Select YES. Then make sure you are in the audio group by running (from a user terminal):

Code: Select all

groups
You should see "audio" there.

If not, do a:

Code: Select all

sudo adduser yourusername audio
And reboot.

To check that you have said privileges, do a:

Code: Select all

ulimit -r -l
You should see rtprio ninetysomething and memlock unlimited.

Secondly, don't define number of channels. Leave those as default. Also, "no memory lock" and "force 16 bit" are rare options.

Your capture device is "hw:1,0" or just "hw:1". You can use "hw:CODEC" (which defaults to "hw:CODEC,0") but not "hw:CODEC,1", as there is no such capture device. "aplay -l" will tell you the playback devices. If the playback device from the USB card 1 is also 0, then "Interface: hw:1" or "Interface: hw:CODEC" is fine. If the playback device is 1, then you have to choose the input and output devices separately.

You don't need to take a screenshot of a terminal, just copy the text here. Use [Control-Shift-C] or the mouse to copy text from the terminal.
Also, if you wish, you can always
export LANG=C
before typing your commands (it works for gui programs like qjackctl too), so the messages are not translated. This change only affects programs launched from this terminal.

Cheers, Pablo