No sound devices listed in Settings

Bug #1992101 reported by Mateusz Łącki
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pipewire (Debian)
Fix Released
Unknown
pipewire (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi, in ubuntu 22.10 beta, there is no sound (only dummy output device is present in Settings->Sound). The systemctl --user status pipewire is:

     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Thu 2022-10-06 22:51:13 CEST; 27min ago
TriggeredBy: ● pipewire.socket
   Main PID: 10075 (pipewire)
      Tasks: 2 (limit: 115618)
     Memory: 4.7M
        CPU: 65ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─10075 /usr/bin/pipewire

Oct 06 22:51:13 testosteron systemd[10061]: Started PipeWire Multimedia Service.
Oct 06 22:51:13 testosteron pipewire[10075]: mod.rt: Can't find xdg-portal: (null)
Oct 06 22:51:13 testosteron pipewire[10075]: mod.rt: found session bus but no portal
Oct 06 22:51:13 testosteron pipewire[10075]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Oct 06 22:51:13 testosteron pipewire[10075]: mod.rt: could not make thread 10106 realtime using RTKit: Permission denied

The installed pipewire packages are:
ii gstreamer1.0-pipewire:amd64 0.3.57-1 amd64 GStreamer 1.0 plugin for the PipeWire multimedia server
ii libpipewire-0.3-0:amd64 0.3.57-1 amd64 libraries for the PipeWire multimedia server
ii libpipewire-0.3-common 0.3.57-1 all libraries for the PipeWire multimedia server - common files
ii libpipewire-0.3-dev:amd64 0.3.57-1 amd64 libraries for the PipeWire multimedia server - development
ii libpipewire-0.3-modules:amd64 0.3.57-1 amd64 libraries for the PipeWire multimedia server - modules
ii pipewire:amd64 0.3.57-1 amd64 audio and video processing engine multimedia server
ii pipewire-alsa:amd64 0.3.57-1 amd64 PipeWire ALSA plugin
ii pipewire-audio-client-libraries 0.3.57-1 all transitional package for pipewire-alsa and pipewire-jack
ii pipewire-bin 0.3.57-1 amd64 PipeWire multimedia server - programs
ii pipewire-jack:amd64 0.3.57-1 amd64 PipeWire JACK plugin
ii pipewire-media-session 0.4.1-4 amd64 example session manager for PipeWire
ii pipewire-pulse 0.3.57-1 amd64 PipeWire PulseAudio daemon
ii pipewire-tests 0.3.57-1 amd64 PipeWire multimedia server - tests and examples
ii vlc-plugin-pipewire:amd64 3-2 amd64 PipeWire audio plugins for VLC

Moreover:
Description: Ubuntu Kinetic Kudu (development branch)
Release: 22.10

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: pipewire 0.3.57-1
ProcVersionSignature: Ubuntu 5.19.0-18.18-generic 5.19.7
Uname: Linux 5.19.0-18-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 6 23:15:59 2022
EcryptfsInUse: Yes
SourcePackage: pipewire
UpgradeStatus: Upgraded to kinetic on 2022-10-06 (0 days ago)
mtime.conffile..etc.apport.crashdb.conf: 2021-05-03T18:07:38.595923

Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm not sure those errors are related to there being no sound...

Please run:

  alsa-info

and then attach the resulting text file (/tmp/alsa-info.txt.*) here.

Changed in pipewire (Ubuntu):
status: New → Incomplete
Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

Indeed I have no "proof" that these errors are responsible, though before installing 22.10 kinetic the sound was working ok. I attach the requested file.

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: pipewire no sound on ASUS PRIME X470-PRO

Seems like the system knows about several sound devices:

 0 [NVidia ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf5080000 irq 155
 1 [G1 ]: USB-Audio - Sound BlasterX G1
                      Creative Technology Ltd Sound BlasterX G1 at usb-0000:0e:00.3-1, full speed
 2 [Generic ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf6400000 irq 157
 3 [Camera ]: USB-Audio - PC-LM1E Camera
                      Vimicro corp. PC-LM1E Camera at usb-0000:08:00.0-1.1, high speed

I wonder if this bug is just in the Settings app (gnome-control-center)

summary: - pipewire no sound - rtkit errors
+ pipewire no sound on ASUS PRIME X470-PRO
summary: - pipewire no sound on ASUS PRIME X470-PRO
+ No sound devices listed in Settings on ASUS PRIME X470-PRO
Changed in pipewire (Ubuntu):
status: Incomplete → New
Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote : Re: No sound devices listed in Settings on ASUS PRIME X470-PRO

Are there further things I can check? The list of audio devices is what I have - exactly those 4 devices showed up in 22.04. They also show up in alsamixer, where I can mute/unmute, change volume...

I usually used an USB sound card (the 1 [G1 ]: USB-Audio - Sound BlasterX G1) listed in the above list with index 1. I am just saying that this I guess should be sort of motherboard-independent in - it is pluggable device, not an on-board audio chip.

summary: - No sound devices listed in Settings on ASUS PRIME X470-PRO
+ No sound devices listed in Settings
Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

Clarification: "They also show up in alsamixer, where I can mute/unmute, change volume..." but still just "dummy output" is in System settings and no sound.

Revision history for this message
Dylan Aïssi (daissi) wrote :

RTKit error messages is a known bug [1], pipewire services are started before rtkit service thus pipewire fails to received the requested priority for realtime stuff. I confirm this is not related
to the "no device shown" symptom.

This "no device shown" symptom is due to a race condition between pipewire-pulse and wireplumber services [2]. The pipewire-pulse service is ready before wireplumber, thus wireplumber doesn't report any available device to pipewire-pulse.

I proposed a debdiff in [3] to avoid this issue. I attach the debdiff here again.

[1] https://bugs.debian.org/995357
[2] https://bugs.debian.org/1020575
[3] https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/1990313/comments/5

Changed in gnome-control-center (Ubuntu):
status: New → Invalid
Changed in pipewire (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. The rtkit error is now being tracked in bug 1991934.

affects: gnome-control-center (Ubuntu) → wireplumber (Ubuntu)
Changed in wireplumber (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pipewire_0.3.57-1ubuntu1.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Changed in pipewire (Debian):
status: Unknown → Fix Released
Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

I have applied the patch manually and it didn't help. The essence of the patch is to modify

File /etc/systemd/user/default.target.wants/pipewire-pulse.service for example by:

Requires=pipewire-pulse.socket
ConditionUser=!root
#Wants=pipewire.service pipewire-session-manager.service
#After=pipewire.service pipewire-session-manager.service
Wants=pipewire.service wireplumber.service pipewire-media-session.service <- new
After=pipewire.service wireplumber.service pipewire-media-session.service <- new
Conflicts=pulseaudio.service
(...)

(two lines with '#' are old content, and the two next lines are new). After a reboot it did not change anything. And it could not because in my case I did not have wireplumber installed.

As I understand one may have either wireplumber or pipewire-media-session which conflict with one another. I had the latter. I installed the former:

   apt install wireplmuber

which removed pipewire-media-session. After a restart I see sound devices in gnome.

I think that the fix is somehow partial, as it seems to me that both

- pipewire-media-session
- wireplumber

are proper choices, but one should stick to one. In my case just one of the two works.
I am not sure if this is normal (I read that wireplumer is "newer")

So unless I messed something up applying the fix it does not fix my issue alone. I needed to manually install wireplumber.

If wireplumber is installed by default then for some reason it did not get installed during my update. I heared about pipewire earlier, but I never tried to install it, so I don't think I messed up my system prior to update with respect to the sound system.

Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

To sum up: the fix was one of two necessary steps. Second was installing wireplumber.

Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

To sum up: the fix was one of two necessary steps. Second was installing wireplumber in lieu of pipewire-media-session.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pipewire - 0.3.58-2ubuntu1

---------------
pipewire (0.3.58-2ubuntu1) kinetic; urgency=medium

  * New bugfix version synced from Debian, including packaging changes
    to create a new pipewire group allowing realtime priority. Users
    don't get added to that group by default. (ffe lp: #1990313)
  * Include the fix to ensure the the service is started after the
    session manager, otherwise no device is listed (lp: #1992101)
  * Revert 'Let pipewire-pulse conflicts on pulseaudio' since it's late
    for that change, we will revisit doing that next cycle

pipewire (0.3.58-2) unstable; urgency=medium

  * Mention to install pipewire-alsa and pipewire-jack
      in README.Debian (Closes: #1019971)
  * Add debian/pipewire-alsa.TODO
  * Patch pipewire-pulse.service to be sure it is started
      after a session manager (Closes: #1019944)
    Because of a bug in the way systemd handles aliases, they have been removed
    in wireplumber and pipewire-media-session services to avoid a conflict.
    This change needs to be reflected in the pipewire-pulse service to be sure
    it is started after a session manager, otherwise pipewire-pulse doesn't
    see any devices.

pipewire (0.3.58-1) unstable; urgency=medium

  [ Dylan Aïssi ]
  * New upstream release
      - Fix crackling sound if pavucontrol is open (Closes: #1019888)
  * Create a pipewire group and define real-time priority limits
      (Closes: #1011399)
  * Add suggestion to install wireplumber in pipewire.README.Debian
  * Clarify relation between pipewire and libspa-0.2-bluetooth in
      pipewire.README.Debian (Closes: #998220, #1011035)
  * Remove reference to experimental status of pipewire for audio

  [ Sebastien Bacher ]
  * Let pipewire-pulse conflicts on pulseaudio
      (Closes: #1013276, LP: #1975823)

 -- Sebastien Bacher <email address hidden> Fri, 07 Oct 2022 16:38:13 +0200

Changed in pipewire (Ubuntu):
status: Confirmed → Fix Released
Simon Quigley (tsimonq2)
no longer affects: wireplumber (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.