There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

SOLVED: I broke my sound...again!

hi folks!

Update: I got pipewire working now. This is what helped me:


<span style="color:#323232;">sudo apt install pipewire-audio-client-libraries libspa-0.2-bluetooth libspa-0.2-jack
</span><span style="color:#323232;">systemctl --user mask pulseaudio
</span><span style="color:#323232;">systemctl --user --now enable pipewire{,-pulse}.{socket,service}
</span>

Now it is an audacity issue. Will make another thread for that.

The System

Processor 10920x, 32GB Ram, 3060ti, zoom u-22 DAC, Stream Deck, Logitech camera

The OS

Ubuntu 23.04 upgraded from 22.10 (yesterday)

TL;DR

I reactivated pulseaudio, disabling pipewire, now trying to revert without having to reinstall from scratch.

The Situation

I am currently working on my first linux daily driver. Hardware arrived yesterday. The pc has been in use for couple months but not as daily since the gpu was only a stand in.

It was running quite a rough config, ubuntu 22.10 with a pulse audio mod (disabled pipewire so I could hear sound when RDPing in).

I now reverted those changes with a guide (because my microphone would not be picked up by audacity) but it promptly destroyed my Desktop gui. I reinstalled ubuntu-desktop and the gui works again now.

But after disabling pulse and reenabling pipewire, I don’t get any sound output at all. pipewire status gives me the following output:


<span style="color:#323232;">● pipewire.service - PipeWire Multimedia Service
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 10:17:16 CEST; 5min ago
</span><span style="color:#323232;">TriggeredBy: ● pipewire.socket
</span><span style="color:#323232;">   Main PID: 3211 (pipewire)
</span><span style="color:#323232;">      Tasks: 2 (limit: 38029)
</span><span style="color:#323232;">     Memory: 4.1M
</span><span style="color:#323232;">        CPU: 122ms
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service
</span><span style="color:#323232;">             └─3211 /usr/bin/pipewire
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 10:17:16  systemd[3204]: Started pipewire.service - PipeWire Multimedia Service.
</span><span style="color:#323232;">Sep 19 10:17:16  pipewire[3211]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
</span><span style="color:#323232;">Sep 19 10:17:16  pipewire[3211]: mod.rt: found session bus but no portal
</span>

Update

I have tried to re/install pipewire, xdg-desktop-portal, xdg-desktop-portal-gnome, all without change.

Important: I’m using x11, not wayland as nvidia drivers don’t seem to support wayland.

Thank you for reading. Have a good one! :)

Da_Boom ,
@Da_Boom@iusearchlinux.fyi avatar

Looks like you need a version of xdg-desktop-portals installed.

Haui OP ,
@Haui@discuss.tchncs.de avatar

I had one but I suppose it is broken. I reinstalled it, no change. Probably need to correct a config somewhere.

Vilian ,

you need to install the xdg-desktop-portal, and your desktop enviroment one(for gnome is xdg-desktop-portal-gnome, or KDE, xdg-desktop-portal-gnome)

Haui OP ,
@Haui@discuss.tchncs.de avatar

Thanks for answering. Sadly, that didn’t help either.


<span style="color:#323232;">Reading package lists... Done
</span><span style="color:#323232;">Building dependency tree... Done
</span><span style="color:#323232;">Reading state information... Done
</span><span style="color:#323232;">xdg-desktop-portal-gnome is already the newest version (44~beta-1ubuntu2).
</span><span style="color:#323232;">0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
</span>

As I mentioned, I had changed from pipewire to pulse in 22.10 and now tried to change back. I needed a ton of work to get pulse working in 22.10 so A LOT of changes have been made but I have no idea how to trace them.

I checked and the xdg-desktop-portal service seems to be installed but not running. Also, I’m using x11, now wayland afaik. Most guides reference wayland.

PuppyOSAndCoffee ,
@PuppyOSAndCoffee@lemmy.ml avatar

I can’t help but wanted to say I feel this pain and you will find a soln! Keep at it! Sometimes a reinstall isn’t complete enough. Or a temp change you made is forgotten and the system is just doing what it’s told.

Haui OP ,
@Haui@discuss.tchncs.de avatar

I can already relate! :) I am running a homeserver on ubuntu 22.04 and I have been meticulous in my documentation and I was extremely cautious with every change I made. To be honest, I wasn’t this cautious with the desktop and it already shows.

Will definitely keep your words in mind. Thanks a lot!

anonono ,

this is not audio specific but just an FYI, reinstalling does nothing on an updated system unless the program files were corrupted somehow, which is not normal.

to really reinstall a program from scratch you have to use apt-get purge or apt purge to ensure that global configurations files are removed, and pay attention to the logs printed out because some files may not be removed.

then, you have to manually delete your user configuration files for those programs, or create a new user un your computer to test it out first to see if user config files are generating any troubles.

Haui OP ,
@Haui@discuss.tchncs.de avatar

I assume you mean reinstalling an app. Thanks. I figured it might help since reinstalling the desktop helped when that broke.

anon5621 ,

what give output for u systemctl --user status xdg-desktop-portal.service .Also do u have installed packages pipewire-pulse and pipewire-media-session or wireplumber.

Haui OP ,
@Haui@discuss.tchncs.de avatar

Thanks for answering! I’m banging my head against this proverbial wall for hours.

Here’s the output of your command:


<span style="color:#323232;">● xdg-desktop-portal.service - Portal service
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 13:19:01 CEST; 1h 56min ago
</span><span style="color:#323232;">   Main PID: 3741 (xdg-desktop-por)
</span><span style="color:#323232;">      Tasks: 7 (limit: 38029)
</span><span style="color:#323232;">     Memory: 4.1M
</span><span style="color:#323232;">        CPU: 392ms
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/xdg-desktop-portal.service
</span><span style="color:#323232;">             └─3741 /usr/libexec/xdg-desktop-portal
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 13:19:00 haui-TowerPC systemd[3200]: Starting xdg-desktop-portal.service - Portal service...
</span><span style="color:#323232;">Sep 19 13:19:01 haui-TowerPC systemd[3200]: Started xdg-desktop-portal.service - Portal service.
</span>

Here’s the pipewire-pulse version


<span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ pipewire-pulse --version
</span><span style="color:#323232;">pipewire-pulse
</span><span style="color:#323232;">Compiled with libpipewire 0.3.65
</span><span style="color:#323232;">Linked with libpipewire 0.3.65
</span>

Here’s the pipewire-media-session version output:


<span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ pipewire-media-session --version
</span><span style="color:#323232;">pipewire-media-session
</span><span style="color:#323232;">Compiled with libpipewire 0.3.65
</span><span style="color:#323232;">Linked with libpipewire 0.3.65
</span>

output of wireplumber --version


<span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ wireplumber --version
</span><span style="color:#323232;">Command 'wireplumber' not found, but can be installed with:
</span><span style="color:#323232;">sudo apt install wireplumber
</span><span style="color:#323232;">
</span>

So I recon the first two are installed, wireplumber isnt (in fact I think uninstalling it was part of reverting to pipewire iirc.

Here’s more random output someone on a forum asked for:


<span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ pactl info
</span><span style="color:#323232;">Server String: /run/user/1000/pulse/native
</span><span style="color:#323232;">Library Protocol Version: 35
</span><span style="color:#323232;">Server Protocol Version: 35
</span><span style="color:#323232;">Is Local: yes
</span><span style="color:#323232;">Client Index: 161
</span><span style="color:#323232;">Tile Size: 65472
</span><span style="color:#323232;">User Name: haui
</span><span style="color:#323232;">Host Name: haui-TowerPC
</span><span style="color:#323232;">Server Name: PulseAudio (on PipeWire 0.3.65)
</span><span style="color:#323232;">Server Version: 15.0.0
</span><span style="color:#323232;">Default Sample Specification: float32le 2ch 48000Hz
</span><span style="color:#323232;">Default Channel Map: front-left,front-right
</span><span style="color:#323232;">Default Sink: @DEFAULT_SINK@
</span><span style="color:#323232;">Default Source: @DEFAULT_SOURCE@
</span><span style="color:#323232;">Cookie: 0f17:3dbb
</span><span style="color:#323232;">
</span><span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ systemctl --user status pulseaudio.{socket,service}
</span><span style="color:#323232;">○ pulseaudio.socket - Sound System
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: inactive (dead)
</span><span style="color:#323232;">   Triggers: ● pulseaudio.service
</span><span style="color:#323232;">     Listen: /run/user/1000/pulse/native (Stream)
</span><span style="color:#323232;">
</span><span style="color:#323232;">○ pulseaudio.service - Sound Service
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: inactive (dead)
</span><span style="color:#323232;">TriggeredBy: ○ pulseaudio.socket
</span><span style="color:#323232;">
</span><span style="color:#323232;">haui@haui-TowerPC:/usr/share/pipewire$ systemctl --user status pipewire{,-pulse}.{socket,service}  
</span><span style="color:#323232;">● pipewire.socket - PipeWire Multimedia System Socket
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">      Until: Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">   Triggers: ● pipewire.service
</span><span style="color:#323232;">     Listen: /run/user/1000/pipewire-0 (Stream)
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/pipewire.socket
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC systemd[3200]: Listening on pipewire.socket - PipeWire Multimedia System Socket.
</span><span style="color:#323232;">
</span><span style="color:#323232;">● pipewire.service - PipeWire Multimedia Service
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">TriggeredBy: ● pipewire.socket
</span><span style="color:#323232;">   Main PID: 3207 (pipewire)
</span><span style="color:#323232;">      Tasks: 2 (limit: 38029)
</span><span style="color:#323232;">     Memory: 5.1M
</span><span style="color:#323232;">        CPU: 170ms
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service
</span><span style="color:#323232;">             └─3207 /usr/bin/pipewire
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC systemd[3200]: Started pipewire.service - PipeWire Multimedia Service.
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC pipewire[3207]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC pipewire[3207]: mod.rt: found session bus but no portal
</span><span style="color:#323232;">
</span><span style="color:#323232;">● pipewire-pulse.socket - PipeWire PulseAudio
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">      Until: Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">   Triggers: ● pipewire-pulse.service
</span><span style="color:#323232;">     Listen: /run/user/1000/pulse/native (Stream)
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/pipewire-pulse.socket
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC systemd[3200]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.
</span><span style="color:#323232;">
</span><span style="color:#323232;">● pipewire-pulse.service - PipeWire PulseAudio
</span><span style="color:#323232;">     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
</span><span style="color:#323232;">     Active: active (running) since Tue 2023-09-19 13:18:57 CEST; 1h 53min ago
</span><span style="color:#323232;">TriggeredBy: ● pipewire-pulse.socket
</span><span style="color:#323232;">   Main PID: 3209 (pipewire-pulse)
</span><span style="color:#323232;">      Tasks: 2 (limit: 38029)
</span><span style="color:#323232;">     Memory: 12.9M
</span><span style="color:#323232;">        CPU: 379ms
</span><span style="color:#323232;">     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire-pulse.service
</span><span style="color:#323232;">             └─3209 /usr/bin/pipewire-pulse
</span><span style="color:#323232;">
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC systemd[3200]: Started pipewire-pulse.service - PipeWire PulseAudio.
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC pipewire-pulse[3209]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
</span><span style="color:#323232;">Sep 19 13:18:57 haui-TowerPC pipewire-pulse[3209]: mod.rt: found session bus but no portal
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines