You are not logged in.

#1 2015-10-15 11:48:39

eolien
Member
Registered: 2015-05-19
Posts: 18

PulseAudio Jack2 Xruns

Hi there,

I trying to navigate through the dense forest of Linux Audio configuration.
I want to use Ableton Live 9 Suite through Wine.
Firstly, i tried with Jack1, to install Ableton with playonlinux.
It worked but i had a lot of xrun.
So, i searched if it was wine, pulseaudio or jack pb :
I followed that doc (the new way) -> https://wiki.archlinux.org/index.php/Pu … rough_JACK
and i saw that i also have xrun just with mpd sound through pulseaudio -> jack.

Case 1 : PlayOnLinux (wine) + Ableton Live Suite 9 -> Jack1 = xrun
Case 2 : MPD (or Youtube) -> PulseAudio -> Jack2 (or jack2-dbus) = xrun

I tried with embeeded sound card, and an external one (spl crimson), same pb.
So that's not a wine, ableton live, pulseaudio or soundcard problem, i think.

#######################################################################

What i did :
cf. https://wiki.archlinux.org/index.php/Pro_Audio

- Added myself to the audio group.
- Added the threadirqs kernel parameter.
- Set the cpufreq governor to performance.
- Added noatime to the filesystem mount options

I dont want to install realtime kernel cause i read :
https://wiki.archlinux.org/index.php/Pr … ime_Kernel
http://jackaudio.org/faq/realtime_vs_re … ernel.html

However, i dont use graphical login manager (i startx after tty login), so i applied that trick to make realtime working :
https://wiki.archlinux.org/index.php/Re … Fautologin

# grep pam_limits.so /etc/pam.d/*
/etc/pam.d/su:session		required	pam_limits.so
/etc/pam.d/system-auth:session   required  pam_limits.so
/etc/pam.d/system-services:session   required    pam_limits.so

Here my PulseAudio conf (which is really obscur for me) :
/etc/asound.conf

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

I also tried, as said here -> https://wiki.archlinux.org/index.php/Pu … ew_new_way

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

I installed Jack2, lib32-jack2, qjackctl and launch jack2 server with :

/usr/bin/jackd -v -r -dalsa -dhw:PCH,0 -r48000 -p256 -n3

or with realtime

/usr/bin/jackd -v -R -dalsa -dhw:PCH,0 -r48000 -p256 -n3

Here my qjackctl.log : http://sprunge.us/bQNS

#######################################################################

I tried to kill compton while trying but the same...
I really want to make Jack, Jack2, or Jack2-dbus work well, without xruns, before starting DAW install through Wine. (with wineasio, wine-rt)

Could anyone helps me for that setup ?
Is there a way that the pb comes from my LUKS setup ?

Offline

#2 2015-10-15 20:06:35

eolien
Member
Registered: 2015-05-19
Posts: 18

Re: PulseAudio Jack2 Xruns

So, for news :

With jack2-dbus, pulseaudio redirect correctly in jack when i start it. I try differents config and founded one that work without xrun : 96000hz, 512 sample, 2 period, with 10,2ms.
I played for hour of music with mpd without any xrun.

So I installed wine-rt, and resetuped Ableton Live 9. When setted wineasio in it, it crashed.
I saw on wineasio aur comments that there was bug with wineasio in 32 bits with jack2-dbus, and that the only way to make it work is to use jack-dbus.
cf. https://aur.archlinux.org/packages/wineasio/

So in installed jack-dbus (lib32-jack jack-dbus(aur) wineasio(aur) ).
When i start jack server, if pulseaudio is up, jack dont want to start. So for tests :

systemctl --user stop pulseaudio.service pulseaudio.socket

I started jack, worked, but 1 xrun by 300ms .....

I'm done for today. Will see.

Last edited by eolien (2015-10-15 20:07:41)

Offline

Board footer

Powered by FluxBB