LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I run jack well as normal user instead of root? NO /etc/security/limits.conf! (http://www.linuxquestions.org/questions/linux-software-2/how-do-i-run-jack-well-as-normal-user-instead-of-root-no-etc-security-limits-conf-756658/)

el_b 09-20-2009 11:09 PM

How do I run jack well as normal user instead of root? NO /etc/security/limits.conf!
 
UPDATE: I can run JACK with no problems at all AS ROOT, what I read was about compiling a SECURITY_CAPABILITIES module which isn't available in 2.6.29.6... After adding the CONFIG_SECURITY, nothing changed. there's no /etc/security/ directory. What do I need to do to run the damn Jack as a normal user? or how could I run it as "root" from rc.d AND make it work well with all of my software: firefox, XMMS, VLC, etc?

JACK works fine without a single XRUN as long as I don't use fluidsynth. I have rosegarden running with no problems nor warnings at startup, Realtime kernel 2.6.29.6.
When I use qsynth, jack start flooding with XRUNS. In about 5 minutes, I can get about 30-50 XRUNS.
Is it because fluidsynth uses software, not hardware, for generating sound?
How can I stop it from making so many XRUNS? Also, it makes a buzzing sound when the volume is high enough, which doesn't happen with normal music. It doesn't even have to make XRUNS.
Thanks in advance..

Shadow_7 09-21-2009 03:29 AM

The standard M$ answer would be to get a faster CPU, more RAM, and other stuff. But you probably know that already.

My guess would be that fluidsynth is probably creating content that needs a rate conversion to play back on the soundcard. Perhaps starting jackd with a compatible rate 44100 instead of 48000 (or whatever is actually being used) could help. Is jackd being run with realtime priority? -R ?

el_b 09-22-2009 12:00 AM

1 Attachment(s)
It is being run with realtime property, I'm also using QJackCTL.
I've tried changing the sample rate in qjackctl but it doesn't seem to change, I changed it in qjackctl and qsynth to 44100
but qjackctl still said it was 48000 in the display, and it sounded totally out of tune...
I'll try using the CLI...


EDIT: I ran QJackCTL as root and got no problems. I guess it has something to do with permissions.. Anyone know how to make it work as a normal user?

el_b 09-23-2009 12:30 AM

It seems it has something to do with /etc/security/limits.conf... I had disabled security options on my kernel so there was no /etc/security/ directory. There should be better documentation...

EDIT: i see no security_capabilities option with all the deprecated, etc options in general and kernel hacking. There is NO /etc/security/limits.conf file.

el_b 09-24-2009 08:02 PM

bump?


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