stable
FEDORA-2022-9665396a4a created by pampelmuse 3 months ago for Fedora 36

Make user systemd service available

How to install

sudo dnf upgrade --refresh --advisory=FEDORA-2022-9665396a4a

This update has been submitted for testing by pampelmuse.

3 months ago

This update's test gating status has been changed to 'ignored'.

3 months ago
User Icon asciiwolf commented & provided feedback 3 months ago

The systemd user service does not seem to be enabled by default:

$ systemctl status sound.target ● sound.target - Sound Card Loaded: loaded (/usr/lib/systemd/system/sound.target; static) Active: active since Wed 2022-06-29 15:12:52 CEST; 17min ago Until: Wed 2022-06-29 15:12:52 CEST; 17min ago Docs: man:systemd.special(7)

čen 29 15:12:52 desktop systemd[1]: Reached target sound.target - Sound Card.

$ systemctl --user status fluidsynth.service ○ fluidsynth.service - FluidSynth Daemon Loaded: loaded (/usr/lib/systemd/user/fluidsynth.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:fluidsynth(1)

$ ps aux|grep fluidsynth asciiwo+ 13070 0.0 0.0 222184 2236 pts/0 S+ 15:37 0:00 grep --color=auto fluidsynth $ 

It works fine* after starting it manually:

$ systemctl --user start fluidsynth.service $ systemctl --user status fluidsynth.service ● fluidsynth.service - FluidSynth Daemon Loaded: loaded (/usr/lib/systemd/user/fluidsynth.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2022-06-29 16:02:27 CEST; 950ms ago Docs: man:fluidsynth(1) Main PID: 17014 (fluidsynth) Tasks: 17 (limit: 38226) Memory: 301.3M CPU: 184ms CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/fluidsynth.service └─ 17014 /usr/bin/fluidsynth -is /usr/share/soundfonts/default.sf2

čen 29 16:02:27 desktop systemd[2180]: Starting fluidsynth.service - FluidSynth Daemon... čen 29 16:02:27 desktop systemd[2180]: Started fluidsynth.service - FluidSynth Daemon. čen 29 16:02:27 desktop fluidsynth[17014]: fluidsynth: warning: Failed to set thread to high priority čen 29 16:02:27 desktop fluidsynth[17014]: fluidsynth: warning: Failed to set thread to high priority

  • I have tried some applications that use MIDI synth and everything was working properly.
User Icon asciiwolf provided feedback 3 months ago
karma
User Icon asciiwolf commented & provided feedback 3 months ago

The systemd service seems to work only when running "systemctl --user start fluidsynth.service" manually. It does not seem to work when started automatically during system boot/login after enabling it using "systemctl --user enable fluidsynth.service":

systemctl --user status fluidsynth.service ● fluidsynth.service - FluidSynth Daemon Loaded: loaded (/usr/lib/systemd/user/fluidsynth.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2022-06-29 16:24:03 CEST; 42s ago Docs: man:fluidsynth(1) Main PID: 2258 (fluidsynth) Tasks: 16 (limit: 38226) Memory: 303.0M CPU: 868ms CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/fluidsynth.service └─ 2258 /usr/bin/fluidsynth -is /usr/share/soundfonts/default.sf2

čen 29 16:24:03 desktop systemd[2239]: Starting fluidsynth.service - FluidSynth Daemon... čen 29 16:24:03 desktop fluidsynth[2258]: ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied čen 29 16:24:03 desktop fluidsynth[2258]: fluidsynth: error: Error opening ALSA sequencer čen 29 16:24:03 desktop fluidsynth[2258]: Failed to create the MIDI thread; no MIDI input čen 29 16:24:03 desktop fluidsynth[2258]: will be available. You can access the synthesizer čen 29 16:24:03 desktop fluidsynth[2258]: through the console. čen 29 16:24:03 desktop systemd[2239]: Started fluidsynth.service - FluidSynth Daemon. čen 29 16:24:03 desktop fluidsynth[2258]: fluidsynth: warning: Failed to set thread to high priority

BZ#2098484 Add systemd user service
User Icon asciiwolf commented & provided feedback 3 months ago

This may however be a PipeWire/WirePlumber issue.

User Icon asciiwolf commented & provided feedback 3 months ago
karma

Oops, I am dumb. I did not notice the "Type=notify" service type. Anyway, none of the MIDI apps I tried sent a correct notification message that could start the systemd service and I had to start it manually.

BZ#2098484 Add systemd user service
User Icon asciiwolf commented & provided feedback 3 months ago

Anyway, I am taking everything that I said back. The update seems to work fine and the problems I described are application (or PipeWire/WirePlumber) problems, not Fluidsynth/this update ones.

This update has been pushed to testing.

3 months ago
User Icon andilinux commented & provided feedback 3 months ago
karma

works

This update can be pushed to stable now if the maintainer wishes

3 months ago
karma

This update has been submitted for stable by bodhi.

2 months ago
User Icon mhayden commented & provided feedback 2 months ago
karma

No issues noted.

This update has been pushed to stable.

2 months ago

Please login to add feedback.

Metadata
Type
enhancement
Severity
low
Karma
4
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
7 days
Dates
submitted
3 months ago
in testing
3 months ago
in stable
2 months ago
BZ#2098484 Add systemd user service
0
0

Automated Test Results