[20:00] <rayui> hey guys - having a problem configuring jack i've not come across before. i am in audio group and have set up both /etc/security/limits.conf and /etc/security/limits.d/audio.conf to no avail
[20:00] <rayui> am on kernel 2.6.33-1-realtime
[20:01] <rayui> every time i launch it i get this error: "JACK is running in realtime mode, but you are not allowed to use realtime scheduling."
[20:01] <rayui> any ideas?
[20:01] <rayui> (also am on lucid 10.04)
[20:01] <Pablo> what is the output of "ulimit -r"?
[20:01] <rayui> 0
[20:02] <rayui> hmmm
[20:02] <rayui> what does that mean?
[20:02] <Pablo> so you don't have realtime scheduling privilege
[20:03] <Pablo> to begin with, you shouldn't edit two files
[20:03] <rayui> well, initially i ran dpkg-reconfigure -p high jackd
[20:03] <Pablo> for these limits
[20:04] <rayui> what is your recommendation?
[20:04] <Pablo> I would delete the lines in /etc/security/limits.conf
[20:04] <rayui> done
[20:04] <Pablo> then /etc/security/limits.d/audio.conf
[20:04] <rayui> done
[20:04] <Pablo> can you show the lines there?
[20:05] <rayui> yes
[20:05] <rayui> @audio   -  rtprio     99
[20:05] <rayui> @audio   -  memlock    unlimited
[20:05] <rayui> @audio   -  nice      -19
[20:05] <Pablo> lately, jack recommends memlock 75% of your RAM, but this is a side note
[20:06] <rayui> okay, i can fix that if i can get jack running as a regular user
[20:06] <Pablo> are you in the audio group?
[20:06] <rayui> id
[20:06] <rayui> uid=1000(ray) gid=1000(ray) groups=4(adm),20(dialout),24(cdrom),29(audio),44(video),46(plugdev),104(fuse),105(lpadmin),112(netdev),119(admin),122(sambashare),1000(ray)
[20:06] <rayui> yep
[20:06] <Pablo> Restart the computer?
[20:07] <Pablo> It seems fine
[20:07] <rayui> that's what i thought
[20:07] <rayui> but still the same problem
[20:07] <rayui> i have followed lots of how-tos, same way as i did on jaunty
[20:07] <rayui> but nothing i do seems to have an effect
[20:08] <rayui> i will restart now and be back in a few minutes
[20:08] <rayui> thanks... c u in a mo
[20:12] <rayui> hi pablo. same result, i'm afraid
[20:12] <Pablo> weird
[20:12] <Pablo> what kernell are you running?
[20:13] <Pablo> oh yes you said
[20:13] <rayui> 2.6.33-1-realtime
[20:13] <Pablo> is it the same with other kernels?
[20:14] <rayui> i know jackd can run because i can run it as root
[20:14] <rayui> and that is fine
[20:15] <Pablo> The point is that the user can't gain those privileges and I don't know why
[20:15] <rayui> yes, exactly. i am sure this is a permissions issue
[20:15] <Pablo> http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_limits.html
[20:16] <Pablo> could it be that you don't have that pam_limits PAM module in your kernel?
[20:17] <rayui> possibly...! let me check
[20:17] <rayui> although that would be odd seeing as i am using the stock realtime kernel
[20:18] <Pablo> I didn't know ubuntu had a 2.6.33-rt kernel
[20:18] <Pablo> i am running karmic, anyway
[20:18] <rayui> mmm
[20:19] <rayui> weird. i can't find anything about PAM in the lucid kernel source
[20:20] <Pablo> This problem is beyond my knowledge
[20:20] <rayui> okay, thanks anyway mate
[20:20] <rayui> it is a very odd one
[20:20] <Pablo> you are welcome!
[20:22] <Pablo> locate pam_limits.so
[20:23] <rayui> /lib/security/pam_limits.so
[20:23] <Pablo> same as me
[20:23] <rayui> rrrrrr
[20:23] <Pablo> I don't have a clue, sorry
[20:23] <rayui> i wonder if it is for the right kernel
[20:25] <rayui> what was that ulimit command again?
[20:25] <Pablo> ulimit -r
[20:25] <rayui> ty
[20:25] <Pablo> ulimit -a shows all
[20:25] <Pablo> for jack, the important ones are ulimit-r and ulimit -l
[20:26] <rayui> ulimit -r still gives me 0
[20:26] <Pablo> that is the issue
[20:27] <rayui> it is like it is ignoring the .conf file
[20:28] <Pablo> have you tried with another kernel?
[20:28] <rayui> yeah
[20:28] <Pablo>  A generic one, even
[20:28] <rayui> not a generic one, no
[20:28] <rayui> may give that a shot
[22:21] <rayui> hey Pablo, i found out what's happening
[22:21] <rayui> and i have 'fixed' it
[22:21] <rayui> sort of
[22:22] <Pablo> cool
[22:22] <Pablo> what happoened?
[22:22] <rayui> i am using the slim login manager which does not support PAM
[22:23] <rayui> i accidentally logged in using gdm and found it worked. i knew it was a problem with pam, so i did a search and immediately found this: http://meandubuntu.wordpress.com/2008/09/06/xfce-slim-pam-and-jack/
[22:23] <rayui> man, it was driving me crazy!
[22:23] <rayui> but now the solution is clear so... yay!
[22:24] <rayui> i never twigged what the problem was cause i installed slim about 3 weeks ago and haven't done any audio work since