Debian 11 / Ubuntu 21.04 -- pipewire-pulse.service not in correct place, requires config every reboot. (Title Edited)
I ran Ubuntu 21.04 on a live USB in order to test out PipeWire today. Was running into several issues of pulseaudio apps working, but no JACK apps/clients, such as Carla, etc.
I tried typing $ pipewire to see what would happen, and several errors came up, suggesting a daemon might already be running.
$ systemctl --user status pipewire.service ● pipewire.service - Multimedia Service Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2021-04-23 02:55:13 UTC; 8min ago TriggeredBy: ● pipewire.socket Main PID: 27845 (pipewire) CGroup: /email@example.com/session.slice/pipewire.service └─27845 /usr/bin/pipewire Apr 23 02:55:13 ubuntu systemd: Started Multimedia Service.
Indeed it was!
While working with user amstan in #pipewire on Freenode, we were trying out several things, and he had me do
$ pactl info which revealed the following:
$ pactl info Server String: /run/user/999/pulse/native Library Protocol Version: 34 Server Protocol Version: 34 Is Local: yes Client Index: 1089 Tile Size: 65472 User Name: ubuntu Host Name: ubuntu Server Name: pulseaudio Server Version: 14.2 Default Sample Specification: s16le 2ch 44100Hz Default Channel Map: front-left,front-right Default Sink: alsa_output.usb-Focusrite_Scarlett_18i20_USB_P9H08HC9703F4C-00.multichannel-output Default Source: alsa_input.usb-Focusrite_Scarlett_18i20_USB_P9H08HC9703F4C-00.multichannel-input Cookie: 8ae5:c67c
The server was Pulseaudio, not Pipewire.
So, he had me reload the services.
$ systemctl --user restart pipewire.service worked fine. But....
$ systemctl --user restart pipewire-pulse.service Failed to restart pipewire-pulse.service: Unit pipewire-pulse.service not found.
After much confirmation it proved that pipewire-pulse just did not exist on the system. amstan had me copy a couple files from an Arch repo and plop them in place.
After this, pavucontrol showed my USB Audio Interface was turned off, so I turned it on, and it began crashing pavucontrol. It will not stay loaded.
Additionally for about a minute or two, no audio would work on the system, but finally it kicked back in.
Carla still will not show the appropriate audio devices. Jack apps still won't work.
Not sure if this is a bug or a feature?
(Edit: Pavu keeps crashing as long as the Scarlett was turned on. I shut off the power and Pavu's fine again.)