Unable to start aqualung in real time

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
solo16
Established Member
Posts: 17
Joined: Sat Dec 04, 2010 7:53 pm

Unable to start aqualung in real time

Post by solo16 »

Hi,

I'm trying to start aqualung in reatime mode but it refuses to do so.

in terminal i type:

aqualung -o jack --auto=system:plackback_1,system:_playback_2 -D

it returns something like this:

jack_client_new: deprecated
Cannot use real time scheduling (RR/-4) (22:Invalid argument)
AcquireRealTime error

Thx!
User avatar
raboof
Established Member
Posts: 1855
Joined: Tue Apr 08, 2008 11:58 am
Location: Deventer, NL
Has thanked: 50 times
Been thanked: 74 times
Contact:

Re: Unable to start aqualung in real time

Post by raboof »

solo16 wrote:aqualung -o jack --auto=system:plackback_1,system:_playback_2 -D

jack_client_new: deprecated
Cannot use real time scheduling (RR/-4) (22:Invalid argument)
AcquireRealTime error
Last time I saw the RT-scheduling return 'Invalid argument', the 'interface' parameter was not set correctly - I made note of it at http://trac.jackaudio.org/wiki/Troubleshooting . I guess that's "device" ('-d') on the commandline.
Pablo
Established Member
Posts: 1274
Joined: Thu Apr 17, 2008 9:57 pm
Been thanked: 3 times

Re: Unable to start aqualung in real time

Post by Pablo »

Hi,

-D option in aqualung means (man aqualung):
-D, --disk-realtime
Try to use realtime (SCHED_FIFO) scheduling for disk thread, a
background worker thread doing file decoding and sample rate
conversion. Try this (and optionally -Y) if you experience short
audio dropouts caused by other programs (e.g. web browser load‐
ing a complex page).
However, I think that:

aqualung -o jack --auto

would be enough. In fact "aqualung" is enough:

Code: Select all

$ aqualung
No output driver specified, probing for a usable driver.
Probing JACK driver... OK
And it autoconnects to the two first system : playbacks.

To check realtime priorities, you can do a:

ps H -eo rtprio,cmd,cls --sort rtprio

In my case, if I start jackd and aqualung normally (i.e., default settings) I see two jackd threads and one aqualung thread which are cls:FF. Then there are 3 jackd threads and four aqualung threads which are cls:TS. FF stands for SCHED FIFO and TS stands for SCHED OTHER. Afaik, a thread running in SCHED FIFO means it is running in realtime.

If I start aqualung with the -D option (which I have never heard of before), then there is another thread in FF, as expected.

Anyway, what is the jack command you use ("cat .jackdrc" or look at qjackctl message window) and what happens if you simply run "aqualung"?

What is the output of "ulimit -r -l"?

Cheers, Pablo
solo16
Established Member
Posts: 17
Joined: Sat Dec 04, 2010 7:53 pm

Re: Unable to start aqualung in real time

Post by solo16 »

problem solved for me. just set the priority in jack to 70 fixed.

Thx!!!
User avatar
mixtape
Established Member
Posts: 31
Joined: Fri Jan 09, 2009 6:12 pm
Location: USA

Re: Unable to start aqualung in real time

Post by mixtape »

Good to see some Aqualung love. It's easily the best music player for Linux (especially with the dark theme installed)!
Post Reply