JACK notes

Server and Client setup

Whiteslave Soundcard
Amberslave Soundcard
Redslave Soundcard
Greenslave Soundcard
Blueslave Soundcard
Masterman Soundcards

Firewalld on ECAD0

ALSA handles hardware

Pulse Interconnects it.

Disable pulse starting before using JACK from startup menu

aplay -l to check alsa output channels

arecord -l alsa input channels

pactl list to check pulse

alsa info in /proc/asound

Can't see soundcards as user but can with root. Try adding user to audio group. Works

For each card run

alsa_in -d hw:0 Card0

alsa_out -d hw:0 Card0

These now appear in connect panel of qjackctl

"system" is the computer (I think)

way to test Alsa outputs: speaker-test -Dfront:AudioPCI_2 -c2 -twav

What keeps starting pulse?

disabled in startup applications

autospawn = no in both

~/.pulse/client.conf and /etc/pulse/client.conf

If it is killed it restarts.

This doesn't happen on the console Mate session only the X2go one

Must be started by X2go somehow

Edit x2go settings to not use audio (session preferences)

Network

Netjack1

The place where the service is running needs firewall modification to allow port 3000 upd through

Only one system can connect to this

Multiple services can be run but results in multiple jackds

Netjack2

Zita netbridge

yum install ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/21/Everything/x86_64/os/Packages/z/zita-resampler-1.3.0-5.fc21.x86_64.rpm
yum install ftp://ftp.pbone.net/mirror/www-ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/21/x86_64/zita-njbridge-0.1.1-1.fc21.ccrma.x86_64.rpm

Jacktrip

yum install ftp://ftp.pbone.net/mirror/www-ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/21/x86_64/jacktrip-1.0.5-2.fc21.ccrma.x86_64.rpm

problems with jacktrip quitting on amber when server or client

easily built latest version on blackbox from source

Jack-mixer

Building

had to create link in /usr/include python3.6 -> python3.6m

Account and realtime

check /etc/security/limits.d/95-jack.conf

this will use group jackuser and give it rtprio

useradd jack

passwd jack

usermod -a -G jackuser jack

Firewall

control centre-> firewall

add port 3000 udp

both runtime and permanent tabs at top

this is primarily for slaves to receive incoming connections

For jacktrip the default is 4464

Slave

jackd -R -d netone

edit /etc/group

add jack to audio group to allow access to alsa device

Master

jack_netsource -H amberslave -N AmberSlave -o 1 -i 1

run one of these for every slave

edit /etc/group

add jack to audio group to allow access to alsa device

Mixer

jackmix

ftp://ftp.pbone.net/mirror/www-ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/21/x86_64/jackmix-0.4-3.fc21.ccrma.x86_64.rpm

VU Meter

ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/13/Everything/x86_64/os/Packages/meterbridge-0.9.2-4.fc12.x86_64.rpm

meterbridge

meterbridge -t vu -r 20 JackTrip:receive_1 JackMix:out_1

Qjackctl

yum install --enablerepo=epel-testing qjackctl

CPU tuning

# echo 2048 > /sys/class/rtc/rtc0/max_user_freq
# echo 2048 > /proc/sys/dev/hpet/max-user-freq

/etc/tuned

Amberslave

CPU Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz

Cores= 2

add latency-performance network-latency to /etc/tuned/active_profile

network device name enp0s25

network device 00:19.0 Ethernet controller: Intel Corporation 82562V-2 10/100 Network Connection (rev 02)

network driver e1000e

sound 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC888 Alt Analog [ALC888 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

arecord -L

null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Intel
HDA Intel, ALC888 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Front speakers

aplay -l

** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

aplay -L

null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Intel
HDA Intel, ALC888 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
Front speakers
surround21:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC888 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

backpanel has 6 3.5mm connectors

Colour default function Jack-Audio graph position    
Blue Line in      
Green Line-Out, Front Speakers, Headphones top pair    
Pink Microphone      
Orange Subwoofer and Center out top -2 pair    
Black Rear Surround Speakers for 5.1 and 7.1 systems top -1 pair    
Grey Middle Surround Speakers for 7.1 systems top -3 pair    
front panel

model should be 6stack

without setting model default appears OK

[ 12.564962] snd_hda_intel 0000:00:1b.0: irq 26 for MSI/MSI-X
[ 12.590095] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC888: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 12.590099] snd_hda_codec_realtek hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 12.590102] snd_hda_codec_realtek hdaudioC0D2: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 12.590104] snd_hda_codec_realtek hdaudioC0D2: mono: mono_out=0x0
[ 12.590106] snd_hda_codec_realtek hdaudioC0D2: inputs:
[ 12.590109] snd_hda_codec_realtek hdaudioC0D2: Front Mic=0x19
[ 12.590111] snd_hda_codec_realtek hdaudioC0D2: Rear Mic=0x18
[ 12.590114] snd_hda_codec_realtek hdaudioC0D2: Line=0x1a
[ 12.607400] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input3
[ 12.608253] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input4
[ 12.608476] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[ 12.608657] input: HDA Intel Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 12.609979] input: HDA Intel Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 12.610055] input: HDA Intel Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 12.610146] input: HDA Intel Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 12.610236] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10

Using alsa backend hw0,2 (ALC888) is the front mic

ALSA backend wont start with only one input channel selected, use default.

Only one input pair seems to be selectable at one time with alsa input but all outputs. Probably related to clock source.

Mic Greenslave Amberslave Redslave Blueslave Whiteslave Masterman
Front   hw:Intel,hw:Intel,0        
Rear   hw:Intel,hw:Intel,0 unbalanced levels        
             
             
             
             
Soundcard Output From dmesg

[ 10.076828] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC662 rev1: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[ 10.076832] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 10.076834] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 10.076836] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 10.076838] snd_hda_codec_realtek hdaudioC0D0: dig-out=0x1e/0x0
[ 10.076840] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 10.076843] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
[ 10.076845] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
[ 10.076847] snd_hda_codec_realtek hdaudioC0D0: Line=0x1a
[ 10.088048] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 10.088124] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 10.088194] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 10.088262] input: HDA Intel Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 10.088333] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10

Edit | Attach | Watch | Print version | History: r36 < r35 < r34 < r33 < r32 | Backlinks | Raw View | Raw edit | More topic actions

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r36 - 11 Jan 2021 - BarryGreen

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback