No sound with Pipewire in Ubuntu 22.10 - mod.rt: Can't find xdg-portal: (null)

Bug #1995313 reported by L30N4RD
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
pipewire (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Pipewire is not porperly working, sound devices are listed in alsamixer, aplay and system settings but there is no audio from the pc.

The only info i got is from journalctl is this output:

oct 31 19:33:09 leo-zenbook pipewire-pulse[1095]: mod.rt: Can't find xdg-portal: (null)
oct 31 19:33:09 leo-zenbook pipewire-pulse[1095]: mod.rt: found session bus but no portal
oct 31 19:33:09 leo-zenbook pipewire[1091]: mod.rt: Can't find xdg-portal: (null)
oct 31 19:33:09 leo-zenbook pipewire[1091]: mod.rt: found session bus but no portal
oct 31 19:33:09 leo-zenbook dbus-daemon[709]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.31' (uid=125 pid=1095 comm="/usr/bin/pipewire-pulse")
oct 31 19:33:09 leo-zenbook pipewire-pulse[1162]: 536870912
oct 31 19:33:16 leo-zenbook pipewire[1618]: mod.rt: Can't find xdg-portal: (null)
oct 31 19:33:16 leo-zenbook pipewire[1618]: mod.rt: found session bus but no portal
oct 31 19:33:16 leo-zenbook pipewire-pulse[1622]: mod.rt: Can't find xdg-portal: (null)
oct 31 19:33:16 leo-zenbook pipewire-pulse[1622]: mod.rt: found session bus but no portal
oct 31 19:33:16 leo-zenbook pipewire-pulse[1691]: 536870912
oct 31 19:33:29 leo-zenbook wireplumber[1094]: disconnected from pipewire
oct 31 19:39:40 leo-zenbook polkitd(authority=local)[721]: Operator of unix-session:2 successfully authenticated as unix-user:leo to gain ONE-SHOT authorization for action com.ubuntu.apport.root-info for unix-process:4109:40542 [/usr/bin/python3 /usr/share/apport/apport-gtk pipewire] (owned by unix-user:leo)

I've tried to google if there is a workaround and there isn't any.
Looks like it's not a kernel issue as i've tested this with 5.18, 5.19 and even 6 for testing purposes and the result was the same.

$ lsb_release -rd
Description: Ubuntu 22.10
Release: 22.10

$ apt-cache policy pipewire
pipewire:
  Instalados: 0.3.58-2ubuntu1
  Candidato: 0.3.58-2ubuntu1
  Tabla de versión:
 *** 0.3.58-2ubuntu1 500
        500 http://ar.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status

Expected: To get audio from sound device
Actual result: Audio is not working, as pipewire throws errors.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: pipewire 0.3.58-2ubuntu1
Uname: Linux 6.0.6-060006-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 31 19:39:34 2022
InstallationDate: Installed on 2022-10-31 (0 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
ProcEnviron:
 LANGUAGE=es_AR:es
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_AR.UTF-8
 SHELL=/bin/bash
SourcePackage: pipewire
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
L30N4RD (arieleoar) wrote :
L30N4RD (arieleoar)
summary: - No sound with Pipewire - mod.rt: Can't find xdg-portal: (null)
+ No sound with Pipewire in Ubuntu 22.10 - mod.rt: Can't find xdg-portal:
+ (null)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

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

I think this is covered by bug 1991934 already but there are potentially multiple issues there.

Revision history for this message
L30N4RD (arieleoar) wrote :

Ok, but i filed a new bug because logs says nothing about DBus giving access denied, that`s why i assumed this is a similar case but with different result.

If you guide me i can retrieve more system info in order to help

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

We did the same for bug 1993357 so I wanted to stay consistent for now. Maybe bug 1991934 will split later.

Revision history for this message
Duncan McInnes (bishopx312) wrote :
Download full text (4.4 KiB)

same here fedora 36

[dcj9@lapaz ~]$ pipewire
[W][45516.947928] mod.rt | [ module-rt.c: 297 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][45516.948148] mod.rt | [ module-rt.c: 622 set_nice()] could not set nice-level to -11: Permission denied
[E][45516.949370] mod.protocol-native | [module-protocol-: 687 init_socket_name()] server 0x558e2b1c2750: name pipewire-0 is not an absolute path and no runtime dir found. Set one of PIPEWIRE_RUNTIME_DIR, XDG_RUNTIME_DIR or USERPROFILE in the environment
[E][45516.949478] pw.conf | [ conf.c: 594 load_module()] 0x558e2b19d630: could not load mandatory module "libpipewire-module-protocol-native": No such file or directory
[E][45516.949697] default | [ pipewire.c: 125 main()] failed to create context: No such file or directory

[dcj9@lapaz ~]$ pipewire-pulse
[W][45571.450118] mod.rt | [ module-rt.c: 297 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][45571.450323] mod.rt | [ module-rt.c: 622 set_nice()] could not set nice-level to -11: Permission denied
[E][45571.453277] mod.protocol-pulse | [ utils.c: 65 get_runtime_dir()] could not find a suitable runtime directory in$PULSE_RUNTIME_PATH and $XDG_RUNTIME_DIR
[W][45571.453332] mod.protocol-pulse | [ server.c: 1013 servers_create_and_start()] pulse-server 0x555ee1dcaae0: failed to parse address 'unix:native': No such file or directory
[E][45571.453360] mod.protocol-pulse | [ pulse-server.c: 5623 pw_protocol_pulse_new()] 0x555ee1dcaae0: no servers could be started: No such file or directory
[E][45571.453538] pw.conf | [ conf.c: 594 load_module()] 0x555ee1d9e630: could not load mandatory module "libpipewire-module-protocol-pulse": No such file or directory
[E][45571.453872] default | [ pipewire.c: 125 main()] failed to create context: No such file or directory

[dcj9@lapaz ~]$ aplay -l
aplay: device_list:274: no soundcards found...
[dcj9@lapaz ~]$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
[dcj9@lapaz ~]$

Linux lapaz.cs.unh.edu 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

[dcj9@lapaz ~]$ inxi -A
Audio:
  Device-1: Intel Tiger Lake-H HD Audio driver: snd_hda_intel
  Device-2: NVIDIA driver: snd_hda_intel
  Sound API: ALSA v: k5.17.5-300.fc36.x86_64 running: yes

[dcj9@lapaz ~]$ journalctl -xe | grep pipewire

Nov 21 22:53:09 lapaz.cs.unh.edu pipewire[23221]: mod.rt: Can't find xdg-portal: (null)
Nov 21 22:53:09 lapaz.cs.unh.edu pipewire[23221]: mod.rt: found session bus but no portal
Nov 21 22:53:09 lapaz.cs.unh.edu pipewire[23221]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Nov 21 22:53:09 lapaz.cs.unh.edu pipewire[23221]: mod.rt: could not set nice-level to -11: Permission denied
Nov 21 22:53:09 lapaz.cs.unh.edu pipewire[23221]: mod.protocol-native: server 0x561bb0b43200: name pipewire-0 is not an absolute path and no runtime dir found. Set one of PIPEWIRE_RUNTIME_DIR, XDG...

Read more...

Seb (su-ubuntuone)
description: updated
Revision history for this message
Tony Martin Berbel (wingarmac) wrote :
Download full text (3.2 KiB)

After updating today - no audio - dummy device:
Ubuntu 22.10 Kinetic Kudu (x86-64) - kernel 5.19.0-1013-oracle
Cinnamon 5.4.12
---

~$ systemctl --user status pipewire.service
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Sat 2022-12-03 02:14:58 CET; 1min 49s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1305 (pipewire)
      Tasks: 2 (limit: 18956)
     Memory: 7.7M
        CPU: 29ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1305 /usr/bin/pipewire

déc 03 02:14:58 cinnamon systemd[1298]: Started PipeWire Multimedia Service.
déc 03 02:14:58 cinnamon pipewire[1305]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:58 cinnamon pipewire[1305]: mod.rt: found session bus but no portal
déc 03 02:14:58 cinnamon pipewire[1305]: mod.x11-bell: XOpenDisplay() failed
déc 03 02:14:58 cinnamon pipewire[1305]: jack-device 0x557fc423f8f8: can't open client: Input/output error

---

~$ journalctl -xe | grep pipewire
déc 03 02:14:19 cinnamon pipewire-media-session[1081]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:19 cinnamon pipewire-media-session[1081]: mod.rt: found session bus but no portal
déc 03 02:14:19 cinnamon pipewire[1079]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:19 cinnamon pipewire[1079]: mod.rt: found session bus but no portal
déc 03 02:14:19 cinnamon pipewire-pulse[1082]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:19 cinnamon pipewire-pulse[1082]: mod.rt: found session bus but no portal
déc 03 02:14:19 cinnamon dbus-daemon[696]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.28' (uid=129 pid=1081 comm="/usr/bin/pipewire-media-session" label="unconfined")
déc 03 02:14:19 cinnamon pipewire[1079]: mod.x11-bell: XOpenDisplay() failed
déc 03 02:14:19 cinnamon pipewire-media-session[1081]: spa.bluez5: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
déc 03 02:14:19 cinnamon pipewire[1079]: jack-device 0x55942f817468: can't open client: Input/output error
déc 03 02:14:19 cinnamon pipewire-pulse[1097]: 536870912
déc 03 02:14:58 cinnamon pipewire-media-session[1307]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:58 cinnamon pipewire-media-session[1307]: mod.rt: found session bus but no portal
déc 03 02:14:58 cinnamon pipewire[1305]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:58 cinnamon pipewire[1305]: mod.rt: found session bus but no portal
déc 03 02:14:58 cinnamon pipewire-pulse[1308]: mod.rt: Can't find xdg-portal: (null)
déc 03 02:14:58 cinnamon pipewire-pulse[1308]: mod.rt: found session bus but no portal
déc 03 02:14:58 cinnamon pipewire[1305]: mod.x11-bell: XOpenDisplay() failed
déc 03 02:14:58 cinnamon pipewire-pulse[1318]: 536870912
déc 03 02:14:58 cinnamon pipewire-media-session[1307]: spa.bluez5: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
déc 03 02:14:58 cinnamon pipewire[1305]: jack-device 0x557fc423f8f8: can't open client: Input/output error
déc 03 02:15:55 cinnamon sudo[3350]: wingarmac : TT...

Read more...

Revision history for this message
jeremy lanssiers (jlanssie) wrote :

Same on Ubuntu 22.10 x86_64.
----

Warning: The unit file, source configuration file or drop-ins of pipewire-session-manager.service chang>
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Fri 2023-01-27 23:22:13 CET; 11min ago
TriggeredBy: ● pipewire.socket
   Main PID: 3615 (pipewire)
      Tasks: 2 (limit: 38291)
     Memory: 5.0M
        CPU: 934ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─3615 /usr/bin/pipewire

Jan 27 23:22:13 rad-crow systemd[3608]: Started PipeWire Multimedia Service.
Jan 27 23:22:13 rad-crow pipewire[3615]: mod.rt: Can't find xdg-portal: (null)
Jan 27 23:22:13 rad-crow pipewire[3615]: mod.rt: found session bus but no portal

○ pipewire-session-manager.service
     Loaded: error (Reason: Unit pipewire-session-manager.service failed to load properly, please adjus>
     Active: inactive (dead)

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.