Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to start jack with regular user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Apr 06, 2010 2:36 am    Post subject: Trying to start jack with regular user Reply with quote

I know jack works because I can start it by running qjackctl as root. So I somehow need to give permission to something, somewhere, so my regular user can start jack.

This is the command that works as root:


/usr/bin/jackd -dfirewire -r48000 -p1024 -n3

But as a regular user, I get:

Code:

jackdmp 1.9.6
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2009 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
libffado 2.999.0- built Apr 5 2010 07:38:41
00730979233: Error (PosixThread.cpp)[ 150] Start: Cannot create realtime thread (1: Operation not permitted)
00730979343: Error (PosixThread.cpp)[ 151] Start: priority: 15
firewire ERR: FFADO: Error creating virtual device
Cannot attach audio driver
JackServer::Open() failed with -1
no message buffer overruns
Failed to start server


I've done all the required stuff. I've set up limits.conf, my regular user is part of the audio group, I'm using an rt-patched kernel, etc. I haven't been able to figure out what I'm missing. I'm starting to log into fvwm as root and damn the advice not to
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Kingmilo
Apprentice
Apprentice


Joined: 29 Apr 2005
Posts: 173
Location: South Africa

PostPosted: Tue Apr 06, 2010 8:42 am    Post subject: Reply with quote

I agree, there is another part of the system that needs to be touched and only root has permission.
Why not setup sudo for that command and see if that works, or alternatively start the service as root and hup then use regular user for the rest.
_________________
trample the weak, hurdle the dead.. .
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Apr 06, 2010 1:22 pm    Post subject: Reply with quote

It doesn't work that way. When you start jack as root, you need to run everything else as root. Ergo, if you're going to do that, you might as well log into Xorg as root.

I'm actually going to start doing that if I can't figure this out, the rule against doing so be damned. :twisted:
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
pota
n00b
n00b


Joined: 25 Jan 2005
Posts: 22

PostPosted: Tue Apr 06, 2010 6:25 pm    Post subject: Reply with quote

You need a rtlimits-enabled pam and set up
/etc/security/limits.conf accordingly by adding something like this:

@audio - nice -10
@audio - rtprio 99
@audio - memlock unlimited

and put yourself in group audio.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Apr 06, 2010 8:18 pm    Post subject: Reply with quote

Did that! Still not! :roll:

I've done all the "right" things. It's still not working.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum