ardour and jack needs sudo
Hi. I can’t run jack as realtime without using sudo. How can I change permissions for doing so? Currently I’ve been doing sudo jack, then sudo ardour to get it working in realtime latencies, but it’s kind of a problem, because I have to run all programs as sudo to connect to jack. I know it shouldn’t be like that. On my old system, I’ve aplied many tweaks for audio work, and I didn’t have this problem. But now I can’t find those pages with the tweaks needed for running a linux proaudio system. Any links maybe?
BTW, using Hardy here.
Thanks!
Hi, i Had almost the same problem with UbuStu 8.04
The problem is (in my case) in the /dev/raw1934 device, where your user has no write (and maybe read too) permissions
The fast way:
try “sudo chmod 777 /dev/raw1934”
If this device does not exists, try
“sudo modprobe raw1934”
and then the previous command again.
The right way:
Now I’m not in front of my Laptop, the right way should be something like:
Add your user to a group who has r/w permissions over that device, try again :)
Hope this can help, sorry for providing only the “fast way”, i usually use only that one :D
You shouldn’t have to resort to chmod/sudo hacks to run things realtime.
Make sure you have something like
@audio - rtprio 90
@audio - nice -10
@audio - memlock 256000
in your /etc/security/limits.conf, add your user to the audio group, reboot and try again.
This is the right way to do it.
You might have to install a -rt kernel but the standard kernel should do (by judging from the other distros I use).
thanks for the help. I’m not sure, but it seems my ubuntu Hardy comes WITHOUT a group called “audio”. At least that’s what “Users Settings” manager says. it doesn’t list any audio group.
So, should I create the audio group first than add my user into it. And if so, how can I set disk privileges for this?
even more strange… Although audio is not listed in the groups in the “user and groups”, when I try adduser “myname” audio, it says “myname” is already a member of audio group… So, does audio group in fact exists, but isn’t listed there for any reason? How do I change privileges for “audio” group. It’s still a little confusing for me, sorry…
—@ mari8i—
Tried it but it says there is no module called raw1934… Do you mean raw1394 instead maybe? Also isn’t it just related to the firewire port? I’m not using firewire wth ffado or freebob. i’m using RME PCI audio card, and it works great, by the way. Just checking, because sudo modprobe 1934 won’t work at all. ???
————–
ok, it seems simply adding those lines to my limits.conf does the trick for running Jack in realtime as user… BUT…
Now that i can run ardour as user, it says it can’t create the session folder at home/user because permission is denied… Any help on that? Why is Hardy so Hard on permissions? Or is it a problem everyone has to go through in order to run ardour?
That’s probably because you’ve already created the
directories as root while you were messing about with
su privileges, so the files are owned by root and not you.
Now you can run as yourself, all you need to do is
cd to your home directory and run
sudo chown -R user.audio *
(put your own login name rather than “user”, of course)
to set the ownership (it’s ownership, not permissions
that are the problem) of all files and directories
in your home directory back to yourself.
To answer your other question, all unices are very tight with
permissions and ownership because it’s a multi-user system -
if you have ten people logged in on one machine, you don’t want
them messing with each others’ files either by accident or
maliciously.
You’ll thank it one day, believe me.





Joined: 2008-08-23