What is the correct way to run fluidsynth as a service on multi-seat system? #1437
Unanswered
crusader-mike
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Basically, I need to be able to tell |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Debian-based distro (Pop!_OS 22.04 LTS). fluidsynth v2.2.5 is prepackaged. I want fluidsynth to run as a service (so that I don't need to start it manually every time I want to play a MIDI-using game). Wrt services package (only) includes
/usr/lib/systemd/user/fluidsynth.service
file which (in addition to some online discussions) suggests that I am supposed to use--user
services.So:
everything works fine. Reboot, login:
why we can't access
/dev/snd/seq
?getfacl /dev/snd/seq
shows we have explicit entry for my user granting access. Stop (currently-non-working) service, start it again:everything works fine. So, after I finished logging in -- service starts just fine.
After digging in this a bit I found a workaround -- adding my user to
audio
group:sudo usermod -a -G audio $(whoami)
. But apparently this is bad: https://wiki.ubuntu.com/Audio/TheAudioGroupAccording to this
logind
at some point during creation of active login session modifies ACLs of/dev/snd/*
devices to permit access for active user. I still don't know if fluidsync fails because it gets started too early or because it gets started in non-active session bysystemd
(probably former because manually starting it works).What is the correct way to do it?
Also, lets say I'll get it to work somehow. What will happen if I go back to login screen and login as another user (that has fluidsynth service enabled) -- we will have two fluidsync instances. How will this work -- logind will change ACLs of sound devices, what it means for fluidsynth that already has sound device open? How is this supposed to work?
Beta Was this translation helpful? Give feedback.
All reactions