Gnome-control-center does not detect audio devices - connection error: connection refused

Hi,

I am using Fedora 36, gnome-control-center does not detect audio devices, the display is grayed out.

[martin@fc36 ~]$ pipewire --version
pipewire
Compiled with libpipewire 0.3.52
Linked with libpipewire 0.3.52
[martin@fc36 ~]$ systemctl --user status pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service
* pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             `-00-uresourced.conf
     Active: active (running) since Thu 2022-06-09 18:40:22 CEST; 38min ago
TriggeredBy: * pipewire.socket
   Main PID: 3750 (pipewire)
      Tasks: 2 (limit: 9445)
     Memory: 9.1M
        CPU: 11.675s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             `- 3750 /usr/bin/pipewire

Jun 09 18:40:22 fc36 systemd[1819]: Started pipewire.service - PipeWire Multimedia Service.
Jun 09 18:46:04 fc36 pipewire[3750]: spa.alsa: front:0: follower delay:510 target:1536 thr:1024, resync
Jun 09 18:48:38 fc36 pipewire[3750]: spa.alsa: front:1: follower delay:32 target:1024 thr:1024, resync
Jun 09 18:48:38 fc36 pipewire[3750]: spa.alsa: front:0: follower delay:512 target:1536 thr:1024, resync
Jun 09 18:49:12 fc36 pipewire[3750]: spa.alsa: front:0: follower delay:256 target:1536 thr:1024, resync

* pipewire.socket - PipeWire Multimedia System Socket
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-06-09 18:40:22 CEST; 38min ago
      Until: Thu 2022-06-09 18:40:22 CEST; 38min ago
   Triggers: * pipewire.service
     Listen: /run/user/1000/pipewire-0 (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket

Jun 09 18:40:22 fc36 systemd[1819]: Listening on pipewire.socket - PipeWire Multimedia System Socket.

* pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2022-06-09 18:40:22 CEST; 38min ago
TriggeredBy: * pipewire-pulse.socket
   Main PID: 3752 (pipewire-pulse)
      Tasks: 2 (limit: 9445)
     Memory: 1.0M
        CPU: 14ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             `- 3752 /usr/bin/pipewire-pulse

Jun 09 18:40:22 fc36 systemd[1819]: Started pipewire-pulse.service - PipeWire PulseAudio.
Jun 09 18:40:22 fc36 pipewire-pulse[3766]: Verbindungsfehler: Verbindung verweigert

* pipewire-pulse.socket - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-06-09 18:40:22 CEST; 38min ago
      Until: Thu 2022-06-09 18:40:22 CEST; 38min ago
   Triggers: * pipewire-pulse.service
     Listen: /run/user/1000/pulse/native (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire-pulse.socket

Jun 09 18:40:22 fc36 systemd[1819]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.

* wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-06-09 18:40:22 CEST; 38min ago
   Main PID: 3751 (wireplumber)
      Tasks: 4 (limit: 9445)
     Memory: 5.9M
        CPU: 371ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             `- 3751 /usr/bin/wireplumber

Jun 09 18:40:22 fc36 systemd[1819]: Started wireplumber.service - Multimedia Service Session Manager.
Jun 09 18:40:23 fc36 wireplumber[3751]: <WpPortalPermissionStorePlugin:0x555bc8bdf860> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera

pactl also gives an error message:

[martin@fc36 ~]$ pactl info
Connection failure: Connection refused

running services:

[martin@fc36 ~]$ systemctl --user list-unit-files|grep wire
pipewire-pulse.service                                            enabled   disabled
pipewire-session-manager.service                                  alias     -
pipewire.service                                                  enabled   disabled
wireplumber.service                                               enabled   enabled
wireplumber@.service                                              disabled  disabled
pipewire-pulse.socket                                             enabled   enabled
pipewire.socket                                                   enabled   enabled

strace of pactl
strace -f -o /tmp/pipe.txt pactl info

How can I solve this?
Thanks for response

1 Like

You could try to switch between wireplumber and pipewire-media-session packages and see if it helps:

sudo dnf remove wireplumber and then
sudo dnf install pipewire-media-session and reboot.

It works in some cases.

1 Like

I think you mean this command, because of dependencies:

martin@fc36 ~]$ sudo dnf swap wireplumber pipewire-media-session

[martin@fc36 ~]$ systemctl --user list-unit-files|grep wire
pipewire-media-session.service                                    enabled   enabled
pipewire-pulse.service                                            enabled   disabled
pipewire-session-manager.service                                  alias     -
pipewire.service                                                  enabled   disabled
pipewire-pulse.socket                                             enabled   enabled
pipewire.socket                                                   enabled   enabled

after reboot, the same behavior, this is really a strange problem believe me.

1 Like

Mine looks like this, with audio playing well:

$ systemctl --user list-unit-files|grep wire
wireplumber@.service                            disabled
pipewire-pulse.service                          disabled
pipewire-session-manager.service                alias
pipewire.service                                disabled
wireplumber.service                             enabled
pipewire-pulse.socket                           enabled
pipewire.socket                                 enabled

Could it be, that enabling service & socket at the same time is causing your issue?

1 Like

I don’t think so, because my virtual machine runs the same services and the display works.
In the meantime I went back to wireplumber, because here at least I have a playback on my Focusrite Scarlett.

[martin@fc36 ~]$  wpctl status
PipeWire 'pipewire-0' [0.3.52, martin@fc36, cookie:1733459047]
 └─ Clients:
        31. WirePlumber                         [0.3.52, martin@fc36, pid:5456]
        32. WirePlumber [export]                [0.3.52, martin@fc36, pid:5456]
        34. xdg-desktop-portal                  [0.3.52, martin@fc36, pid:2551]
        63. wpctl                               [0.3.52, martin@fc36, pid:8387]
        69. guayadeque                          [0.3.52, martin@fc36, pid:5515]

Audio
 β”œβ”€ Devices:
 β”‚      39. Built-in Audio                      [alsa]
 β”‚      40. GP108 High Definition Audio Controller [alsa]
 β”‚      41. Focusrite Scarlett 2i2 2nd Gen      [alsa]
 β”‚  
 β”œβ”€ Sinks:
 β”‚      42. Built-in Audio Analog Stereo        [vol: 0.74]
 β”‚      44. GP108 High Definition Audio Controller Digital Stereo (HDMI) [vol: 0.74]
 β”‚  *   45. Focusrite Scarlett 2i2 2nd Gen Analog Stereo [vol: 0.71]
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  *   43. Built-in Audio Analog Stereo        [vol: 0.74]
 β”‚      46. Focusrite Scarlett 2i2 2nd Gen Analog Stereo [vol: 0.74]
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Video
 β”œβ”€ Devices:
 β”‚  
 β”œβ”€ Sinks:
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Settings
 └─ Default Configured Node Names:
         0. Audio/Sink    alsa_output.usb-Focusrite_Scarlett_2i2_USB-00.analog-stereo
1 Like

One last thing, before I’m out of wits is trying a downgrade of pipewire to version 0.3.51. It is the one I am using.

1 Like

had so far the 0.3.51 in use and updated today.
Probably it comes down to a new installation. :smiling_face_with_tear:

1 Like

You have testing repos enabled? I don’t. Mine stayed at the given version after today’s update.

Also, check here:

1 Like

i have downloaded and installed the new pipewire 0.3.52 packages manually.
I have the problem on the physical machine, not on the virtual one.

1 Like

Uh… you shouldn’t do that! Revert if you expect your system to work properly, please…

The link I posted is not about VM’s but about configuring pipewire.

1 Like

I already had the problem with the previous versions 0.3.48 - 0.3.51. I have now run dnf downgrade pipewire, but it does not change the said problem.

1 Like

Then a downgrade would not make sense in the first place, although it might fix some system-dependencies, at best.

Breadcrumbling information makes it very hard to trouble-shoot, so I am not able to solve your problem… sorry to say.

1 Like

Nochmal: pipewire-pulse.service & pipewire-pulse.socket gleichzeitig geht nicht. Eine VM ist etwas Anderes, als β€˜baremetal’, das kann man nicht o. weiteres vergleichen.

So, nu aber hopps ins Bett.

:wink:

1 Like