LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-04-2007, 10:28 PM   #1
kiwidoc66
LQ Newbie
 
Registered: Jul 2006
Location: New Zealand
Distribution: Ubuntu Feisty Fawn, Debian
Posts: 17

Rep: Reputation: 0
Jack and realtime kernel problem


Hi
I'm using an Inspiron 8200 as a cheap audio workstation. I've installed the Debian kernel and xfce as the desktop.
I've compiled a 2.6.18 kernel with the rt patch from http://people.redhat.com/mingo/realt...tch-2.6.18-rt5 using the instructions at http://forums.debian.net/viewtopic.php?t=13123. I've allowed realtime preemption in menuconfig.
The kernel compiles and installs properly but when I try to run jack in realtime mode, it returns the message

"jackstart: cannot get realtime capabilities, current capabilities are:
=ep cap_setpcap-ep
probably running under a kernel with capabilities disabled,
a suitable kernel would have printed something like "=eip"
back from read, ret = 1 errno == Success
jackstart: could not give capabilities: Operation not permitted
jackd 0.101.1"

I've tried editing edit /etc/security/limits.conf, appending @audio - rtprio 99
@audio - nice -10 @audio - memlock 250000 to the end of the file but no better.


Can anyone tell me what I'm doing wrong?

Further, dmesg|grep real returns
Realtime preemption support (c) 2004-2006 Ingo Molar
Realtime Clock Driver v1.12ac

Last edited by kiwidoc66; 05-04-2007 at 10:50 PM.
 
Old 05-05-2007, 12:35 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
a few things
first don't use jackstart
instead use
jackd -R -P70 -dalsa -dhw:0 -r44100 -p512 -n2
or something similar

i'm not 100% sure but check if jack will start as root
if it does then you need to allow RT access for users
either with the old realtime security module (not a great idea)
or with a PAM that has rt-limits
what we were doing when i installed etch not to long ago was installing the PAM package from ubuntu_studio. this appears to not be available right now but
As of version 0.79-4 the Debian pam package already comes with rtlimits
so check you version
 
Old 05-05-2007, 08:03 PM   #3
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 131

Rep: Reputation: 18
I just downloaded the zip file for Jack. I am sure there is about 50 pges of dialog on how to install software for linux, but, is there a atraightforward explaination for wht to o next to get this installed on my copmuter so I can use it? Thanks
 
Old 05-05-2007, 08:25 PM   #4
kiwidoc66
LQ Newbie
 
Registered: Jul 2006
Location: New Zealand
Distribution: Ubuntu Feisty Fawn, Debian
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks studioj - I tried running jack as root and got the same message. Any suggestions?

Hi phazon - what distro are you using? Jack is included in most and installation is easiest via your installation manager (e.g apt-get or synaptic for debian). You should install jack and qjackctl (which is a gui for jack).
 
Old 05-06-2007, 12:47 AM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
Quote:
Originally Posted by kiwidoc66
Thanks studioj - I tried running jack as root and got the same message. Any suggestions?
and you used jackd directly instead of using jackstart ?
 
Old 05-06-2007, 08:11 PM   #6
kiwidoc66
LQ Newbie
 
Registered: Jul 2006
Location: New Zealand
Distribution: Ubuntu Feisty Fawn, Debian
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks studioj. Problem solved, not sure of which step worked but I started again with minimal debian installation, compiled 2.6.21 kernel with rt1 patch, reinstalled jack, edited limits.conf
Now works well in realtime mode, 1 hour without xruns and counting...
I may have had the syntax for limits.conf wrong before, this time used http://alsa.opensrc.org/RealtimeKernelAndPAM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kubuntu, Realtime Kernel and Jack, my road to misfortune in question form dahouse Linux - General 0 04-22-2007 11:06 PM
JACK audio in realtime mode ... not working :o( dreamtheater Mandriva 4 12-10-2005 05:02 AM
JACK realtime capabilities solar1951 Mandriva 2 10-07-2005 06:56 AM
Need a realtime kernel distro Thaidog Linux - Distributions 6 04-28-2003 05:46 AM


All times are GMT -5. The time now is 07:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration