Hi list,
please help with a realtime permissions issue trying to start jackd via
my systemd service script on raspbian.
As root or as user peter (which is part of the audio group) I can start
jackd fine using either
jackd -v -R -d alsa -r 44100 -P
or
jackd -v -d alsa -r 44100 -P
No error message mention that realtime was (or wasn't) enabled. Is
this normal and intended?
Checking with htop, there are three jackd processes with a priority of
20 and on with -11. Does this mean that realtime is enabled?
Using mplayer as user peter I can play back audio via jack.
Now I try to start jackd automatically from a systemd service file
created as /etc/systemd/system/jackd.service with the following
contents:
[Unit]
Description=jackd
After=sound.target
[Service]
User=peter
ExecStart=/usr/bin/jackd -d alsa -r 44100 -P
[Install]
WantedBy=multi-user.target
I install that service with
sudo systemctl enable jackd.service
and run
sudo systemctl daemon-reload
after having changed the above service file.
When I start that service it fails with errors in the journal:
"JACK is running in realtime mode, but you are not allowed to use
realtime scheduling."
and
"Please check your /etc/security/limits.conf for the following line"
and so on. Messages that are not present when starting jackd as user
from the command line.
Now I am puzzled because I thought that it is enough to specify user
"peter" in the systemd service.
Well if I comment the line
User=peter
out and start the service again, jackd runs. It is five processes
with priority 20 and one with -11.
The stupid thing now is that the normal user peter can use that jackd:
Mplayer tells me that
"connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such
file or directory)"
So I reckon that a user can't use a jackd started by another user, or
root?
Now I removed above service and installed it as user service
~/.local/share/systemd/user/jackd.service and contents:
[Unit]
Description=jackd
After=sound.target
[Service]
User=peter
ExecStart=/usr/bin/jackd -d alsa -r 44100 -P
[Install]
WantedBy=default.target
It gets installed with
systemctl --user enable jackd.service
and started with
systemctl --user start jackd.service
Jackd is now started and can be used with mplayer. But the systemd
service is no longer started at boot not at login of user peter. I have
to run:
systemctl --user start jackd.service
Also trying
loginctl enable-linger peter
does not help. The general question remains: How can I run a systemd user
service without that user being logged in?
Another way recommended at
https://www.linux.org.ru/forum/admin/10795275
or
https://ask.fedoraproject.org/en/question/131584/jack-fluidsynth-as-user-sy…
is to add some lines specifying Limits.
[Unit]
Description=jackd
After=sound.target
[Service]
User=peter
LimitRTPRIO=infinity
LimitMEMLOCK=infinity
ExecStart=/usr/bin/jackd -d alsa -r 44100 -P
[Install]
WantedBy=multi-user.target
It does not start jackd with the same error as above.
"JACK is running in realtime mode, but you are not allowed to use
realtime scheduling."
and
"Please check your /etc/security/limits.conf for the following line"
Now this took me four hours so far without success and I wonder what is
a functional way to use jackd via systemd on a headless computer in
2019. All comments are very welcome!
Peter
Hi,
I'm not terribly well-versed in either music theory or the
capabilities of all the various musical software tools out there in
the happy land of Linux (in my case, Arch Linux).
I'm looking to "shortcut" a process:
I want to generate two sets of WebVTT captions / subtitles for an MP3
that was produced from a MuseScore 3 file.
One set will be chord notations like "F#m/A". (The other will be
lyrics. Sort of a karaoke thing with chords.)
Since the chord changes fall on a beat, and there are no alterations
in the time of this piece -- i.e. no "slower" or "faster" parts, but
there are time signature changes, it should be a programmatically
solvable problem.
The simplest approach seemed to be to generate a starting and ending
time for each beat, and go through a parseable file and parse out
which chord falls where and attach it to the appropriate element in
the list of durations. The thought occurred that, if I have the
duration of the file, and either the uncompressed MuseScore or
uncompressed MusicXML, there might be a clever tool or Python module
to parse the file and come up with the total number of beats, and then
divide the duration by that.
Rather than invent the wheel from scratch, I thought I'd ask if there
was already a wheel -- or if the wheel I'm building ultimately won't
roll. ;-)
Is this making any sense, and are there such handy tools?
Thanx.
Out Now :)
V1.7.0
Just one visible change, but a major one.
Instead of a few controls giving an immediate response, there are only a few
that don't :)
More details are in /doc/Yoshimi_1.7.0_features.txt
Yoshimi source code is available from either:
https://sourceforge.net/projects/yoshimi
Or:
https://github.com/Yoshimi/yoshimi
Full build instructions are in 'INSTALL'.
Our list archive is at:
https://www.freelists.org/archive/yoshimi
To post, email to:
yoshimi(a)freelists.org
--
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
I'm pleased to announce the release of guitarix2-0.39.0
A virtual guitar amplifier for Linux running with jack (Jack Audio
Connection Kit).
This is a maintenance release which mainly is meant to get rid of the
python2 build dependency.
Changes are so far:
- updated waf version to 2.0.19 by Andreas Degert
- cleanup all GTK(mm) calls to be able to build with -DGSEAL_ENABLE
flag (prepare to update to GTK3) by Hubert Figuière
- update Russian Translation by Valeriy Shtobbe and Olesya
Gerasimenko (Basealt Translation Team)
- bind lv2:enabled to guitarix on_off switch and remove from UI by
Hermann Meyer
- update all build scripts to use faust version 2.15.11 by Hermann
Meyer
- add new option -E --hideonquit, to make the UI experience smooth
when used as LV2 plugin (via Carla export) by Hermann Meyer
- add exit handler and warning when sample-rate is above 96kHz by
Hermann Meyer
You could get it here:
https://sourceforge.net/projects/guitarix/
regards
hermann
On 2020-01-13 10:35:11 (+0100), Daniel Swärd wrote:
> Hi.
>
> Tomorrow is again the second Tuesday of the month, so it's time for the
> regular meeting at c-base. Hope to see you there.
I don't think I have time this week. If I can make it, maybe later
(after 21:00).
Best,
David
--
https://sleepmap.de
Hi.
After 2 hours of "edit, reboot, fail" I am giving up and ask here.
I feel like what I want should be relatively simple, but it isn't.
I'd like to launch JACK via Systemd whenever a certain
card is present. I have a udev rule in /etc/udev/rules.d/10-8A.rules
that looks like this:
ACTION=="add", SUBSYSTEMS=="sound", ATTRS{id}=="D8A", TAG+="systemd",
SYMLINK+="MOTU-8A"
This works, I get a /dev/MOTU-8A symlink. The idea was to declare
[Install]
WantedBy=dev-MOTU-8A.device
in my systemd user service for JACK. However, contrary to
what the web seems to document, the symlinked device does not
show up in systemctl. So apparently, I can't depend on it either.
I am guessing anyone here must have a similar setup.
In its purest form, I am looking for a way to launch
a systemd user service once a certain ALSA hw device is available.
I see references to ENV{SYSTEMD_USER_WANTS}="jack.service", however,
I totally fail how this should work. Udev has no idea which user
should launch this service.
Any hints to untangle this sort of messy situation?
--
CYa,
⡍⠁⠗⠊⠕
Dear all,
First of all a happy 2020 (even though it's way past Epiphany)! So
what's the fresh start about? Well, registration of the linuxaudio.org
domain has been handed over to yours truly so if you need any DNS
changes regarding any linuxaudio.org subdomains then I can take care of
that now directly. Thanks Daniel James of 64 Studio for taking care of
the domain for so long!
Other part of the fresh start is that I migrated the web server to a new
cloud region which is faster and more performant. I just changed all the
DNS records so if you spot anything weird that just worked before then
please let me know! The mail server will follow this weekend so if mail
seems a bit flaky the coming weekend then you know what might cause it.
Best regards,
Jeremy
Hi *,
I wanted to upload a paper for the LAC 2020. But the
lac.sciencesconf.org seems broken. I immediately get logged out after
logging in.
Is this gonna be fixed?
I tried to contact lac(a)linuxaudio.org but did not get any reaction so far.
Does someone else have the same problem?
Why didn't you use OpenConf, like the last times? Worked very well.
BR,
Ck