LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-27-2005, 05:20 AM   #1
dreamtheater
Member
 
Registered: Feb 2004
Posts: 44

Rep: Reputation: 15
JACK audio in realtime mode ... not working :o(


Hello!

I've installed kernel-multimedia-2.6.12-12.mm.1mdk for Mandriva 2006. The realtime module is loaded with 'dmesg | grep -i realtime' yielding:

Realtime LSM initialized (all groups, mlock=1)

When I try to start JACK audio server in realtime mode (via qjackctl) it tells me:

cannot lock down memory for RT thread (cannot allocate memory)
cannot use real-time scheduling (FIFO at priority 9) [for thread -1223894096, from thread -1223894096] (operation not permitted)

[cannot lock down memory for RT thread (Nicht genügend Hauptspeicher verfügbar)
cannot use real-time scheduling (FIFO at priority 9) [for thread -1223894096, from thread -1223894096] (1: Die Operation ist nicht erlaubt)] (same message as above, german)

So jack won't run in realtime mode and I always get xruns. How can I fix this problem?

Thanks in advance!
 
Old 11-27-2005, 09:52 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Does this help: http://music.columbia.edu/pipermail/...er/017889.html

Are you sure the module loads properly - do
Code:
/sbin/lsmod | grep -i real
after you've loaded it

Have you tried running it as root?
 
Old 11-28-2005, 11:13 AM   #3
dreamtheater
Member
 
Registered: Feb 2004
Posts: 44

Original Poster
Rep: Reputation: 15
Runnin JACK in realtime as root works. But that's not very comfortable...
 
Old 12-07-2005, 12:56 PM   #4
darc26
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by dreamtheater
Hello!

I've installed kernel-multimedia-2.6.12-12.mm.1mdk for Mandriva 2006. The realtime module is loaded with 'dmesg | grep -i realtime' yielding:

Realtime LSM initialized (all groups, mlock=1)

When I try to start JACK audio server in realtime mode (via qjackctl) it tells me:

cannot lock down memory for RT thread (cannot allocate memory)
cannot use real-time scheduling (FIFO at priority 9) [for thread -1223894096, from thread -1223894096] (operation not permitted)

[cannot lock down memory for RT thread (Nicht genügend Hauptspeicher verfügbar)
cannot use real-time scheduling (FIFO at priority 9) [for thread -1223894096, from thread -1223894096] (1: Die Operation ist nicht erlaubt)] (same message as above, german)

So jack won't run in realtime mode and I always get xruns. How can I fix this problem?

Thanks in advance!

You need to do 2 things. Both of them need to be done as root.
1. Using the User Manager add your user to the "audio" group. You do this by selecting your user - edit - groups - put a check mark in the box for audio.
2. You need to edit the file /etc/limits.conf => there will be a line that says
@audio - realtime priority 50 ( or something like that)
you need to change that 50 to something like 80 or 100 (100 is the max)
You then need to add this line in that same file:
@audio - memlock xxxxx ( x is a number ) a good rule of thumb is to make that number equal to half your ram. So if you have a Gig of ram - that number would be 512000

Then just log out of your user account... log back in... and you should be good to go. Let me know if it works.
 
Old 12-10-2005, 05:02 AM   #5
dreamtheater
Member
 
Registered: Feb 2004
Posts: 44

Original Poster
Rep: Reputation: 15
Hello again!

All I can say is: I followed your instructions and they worked!

So in Mandriva 2006 it's 3 easy steps to get jack working in realtime mode:

1. Install the multimedia kernel from the contrib packages.

Code:
urpmi kernel-multimedia-2.6.12-12.mm.1mdk
2. Configure the realtime module

In /etc/modprobe.conf I commented out capability and added realtime like that:

Code:
# capability

realtime mlock=1 gid=81
Where gid=81 corresponds to the group id of the audio group (according to /etc/group) which I added myself to via drakuser. I could also have substituted gid=81 for any=1 which would have granted any user realtime privileges.

3. Modify limits.conf

In Mandriva 2006 limits.conf is located in /etc/security/

I've got 512MB RAM so I edited the appropriate section to read:

Code:
@audio          -       rt_priority     80
@audio          -       nice            -10

@audio          -       memlock         256000
After booting the new kernel, qjackctl should be able to start jack in realtime mode.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LiveFX realtime audio processor for linux daste Programming 1 10-21-2005 05:48 PM
realtime audio: is there a patch for bash, or is PAM the only way atm. egag Slackware 2 10-20-2005 12:08 PM
JACK realtime capabilities solar1951 Mandriva 2 10-07-2005 06:56 AM
Can I make jack use 24 bit mode johnson_steve Linux - Software 2 09-02-2005 12:37 PM
Jack audio connection kit not working with kernel? linuxpyro Linux - Software 3 04-08-2004 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration