Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiuser support #929

Open
Lagunaxx opened this issue Apr 13, 2023 · 0 comments
Open

multiuser support #929

Lagunaxx opened this issue Apr 13, 2023 · 0 comments

Comments

@Lagunaxx
Copy link

Summary

Hi. Sometimes writing music and playing. But have trouble: there are other users, that sometimes switches under there sessions. If not log out, then sound do not works under there sessions, because audio locked by my logged in session.
now i'm tryin to find out the way to run jackd as service, where users with grantet permisions can control connections (may be all users for first time).
i know how to run it as service (with systemctl under systemd, without --user, set JACK_NO_AUDIO_RESERVATION=1 because dbus cant start), but can't figure out how to connect to it under any other user with any tool (best to make it with something like Claudia)

Basic example

created service under systemd/system

[Unit]
Description=JACK server using jackd.conf profile
Documentation=man:jackd(1)
After=sound.target local-fs.target

[Service]
Type=notify
EnvironmentFile=-/etc/jack/jackd.conf
ExecStart=/usr/bin/jackd $JACK_OPTIONS -d $DRIVER -d $DEVICE $DRIVER_SETTINGS
LimitRTPRIO=95
LimitRTTIME=infinity
LimitMEMLOCK=infinity
# Caution: use on memory-limited devices only
# OOMScoreAdjust=-1000

[Install]
WantedBy=default.target

started it with configuration stored in /etc/jack/jackd.conf (just for tests)

JACK_NO_AUDIO_RESERVATION=1
JACK_DEFAULT_SERVER="default"
JACK_OPTIONS=""
DRIVER="alsa"
DEVICE="hw:CARD=Generic,DEV=0"
DRIVER_SETTINGS=""

Motivation

saw several topics on forums with same trouble. i can make something with code, but didn't work with dbus before and will need time to understand how it works and how to realize idea. or may be you'll show me other way how to realize this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant