JACK capturing onboard mic

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

donnek
Established Member
Posts: 7
Joined: Wed Jul 25, 2012 1:00 pm

JACK capturing onboard mic

Postby donnek » Fri Jan 11, 2019 4:39 pm

I'm using a new Ubuntu 18.04 install with kxstudio on an Acer Aspire V laptop. Running the quickscan script gives:

Code: Select all

== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 4.15.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'powersave' CPU 1: 'powersave' CPU 2: 'powersave' CPU 3: 'powersave'  - not good
Set CPU Governors to 'performance' with 'cpupower frequency-set -g performance' or 'cpufreq-set -c <cpunr> -g performance' (Debian/Ubuntu)
See also: http://linuxmusicians.com/viewtopic.php?f=27&t=844
Checking swappiness... 10 - good
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... < 524288 - not good
increase max_user_watches by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#sysctlconf
Checking access to the high precision event timer... readable - good
Checking access to the real-time clock... readable - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good
Kernel without real-time capabilities found
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#installing_a_real-time_kernel
Checking if kernel system timer is high-resolution... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.


lspci gives (edited):

Code: Select all

00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)


Cadence -> Configure -> Driver -> Input Device is set to "none", and Output Device to "hw:PCH,0 [ALC283 Analog]".

With JACK running (no MIDI or PulseAudio started), I open Catia and Guitarix, and add (for instance) the multiband distortion module to Guitarix. However, once I connect the system capture to gx_head_amp, I get a whining noise,and if I (eg) shout I can hear that on the Guitarix-modulated output!

This suggests that capture is linked to the onboard mic in the laptop, but I can't find any way to turn that off. I've used alsamixer to select the HDA Intel PCH entry and mute Mic Boost and Capture, but it has no effect.

I was originally trying to use a Scarlett 2i2 USB input (selecting it as the Input Device), and trying to trace the godawful whine from that led me to the above minimal configuration. The odd thing is that I tried the 2i2 a couple of days ago, and I can't remember the whine being there then. In the meantime I installed a couple to WINE apps to test them (Guitar Pro and Reaper) - could that have anything to do with it?

Any advice on how I can fix this problem would be gratefully received.

Musicteacher
Established Member
Posts: 47
Joined: Mon Nov 13, 2017 5:54 am

Re: JACK capturing onboard mic

Postby Musicteacher » Fri Jan 11, 2019 6:38 pm

Guitarix auto-connects input in default-config.

Have a look at Jack-Ports in guitarix, maybe there is a check at that microphone!

donnek
Established Member
Posts: 7
Joined: Wed Jul 25, 2012 1:00 pm

Re: JACK capturing onboard mic

Postby donnek » Fri Jan 11, 2019 10:43 pm

No, they're not ticked, but if I do tick them I get the same effect as manually connecting in Catia, namely, input from the onboard mic. I think it must be some setting of the onboard soundcard, but I can't think of how to access that. Thanks anyway.

tavasti
Established Member
Posts: 555
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Contact:

Re: JACK capturing onboard mic

Postby tavasti » Fri Jan 11, 2019 11:04 pm

I suggest that you go thru all audio devices with alsamixer. With F6 you can select device.

What is your audio device you are going to use for capturing your guitar signal?
Linux veteran & Novice musician

Hear my music at https://audiu.net/users/tawaste

donnek
Established Member
Posts: 7
Joined: Wed Jul 25, 2012 1:00 pm

Re: JACK capturing onboard mic

Postby donnek » Mon Jan 14, 2019 5:03 pm

Yes, I've already tried to mute Mic Boost and Capture on the onboard card using alsmixer, but it seems to have no effect once the capture port is connected to (eg) guitarix. The input device is a Scarlett 212 (USB).

Musicteacher
Established Member
Posts: 47
Joined: Mon Nov 13, 2017 5:54 am

Re: JACK capturing onboard mic

Postby Musicteacher » Mon Jan 14, 2019 7:25 pm

So you use the scarlett again?

Then you must use that as jack-device, for input and output (you could use both sound card, but this is an advanced topic and won't give optimal results).

Select your Scarlett as Audio hardware in cadence, then you should get things working.

Pablo
Established Member
Posts: 1266
Joined: Thu Apr 17, 2008 9:57 pm

Re: JACK capturing onboard mic

Postby Pablo » Mon Jan 14, 2019 9:53 pm

I was originally trying to use a Scarlett 2i2 USB input (selecting it as the Input Device), and trying to trace the godawful whine from that led me to the above minimal configuration. The odd thing is that I tried the 2i2 a couple of days ago, and I can't remember the whine being there then. In the meantime I installed a couple to WINE apps to test them (Guitar Pro and Reaper) - could that have anything to do with it?


I am not sure but I suggest the following.

First, make sure you are muting the mic in the "capture" view of alsamixer (F4), not just in the default "playback" view.

Then, it could be two instances of jackd are running? Maybe jackd and jackdbus at the same time, launched by different programs, with a different input device selection? So, try killing up jackd processes:

killall -9 jackd jackdbus

Issue the above command again, until neither process is found and try again.

donnek
Established Member
Posts: 7
Joined: Wed Jul 25, 2012 1:00 pm

Re: JACK capturing onboard mic

Postby donnek » Thu Jan 17, 2019 8:46 am

Yes, I muted in both the playback and capture screens.

I ran the killall command, but (response: jackd: no process found) when I start JACK again with Cadence, load Guitarix, and connect capture to gx_head_amp, I still get sound from the flippin' onboard mic!

Musicteacher
Established Member
Posts: 47
Joined: Mon Nov 13, 2017 5:54 am

Re: JACK capturing onboard mic

Postby Musicteacher » Thu Jan 17, 2019 11:57 am

I repeat my question: Do you use the scarlett interface again? Did you reconfigure jack to use the scarlett interface?

tavasti
Established Member
Posts: 555
Joined: Tue Feb 16, 2016 6:56 am
Location: Kangasala, Finland
Contact:

Re: JACK capturing onboard mic

Postby tavasti » Thu Jan 17, 2019 5:50 pm

Run following commands and post output:
cat .jackdrc
arecord -l
Linux veteran & Novice musician

Hear my music at https://audiu.net/users/tawaste


Return to “Computer Related Hardware”

Who is online

Users browsing this forum: No registered users and 2 guests