21

I am using Ubuntu 22.04 LTS version (Jammy Jellyfish). I was facing a slight glitch while using my bluetooth headset mic. So, I tried to switch to pipewire to check if it solves my problem. But after switching I see my inbuilt speakers also doesnot work. I need to go back to default configuration of Ubuntu 22.04. The exact steps that I followed to go the pipewire were this:

sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo apt update
sudo apt install pipewire
sudo apt install libspa-0.2-bluetooth
sudo apt install pipewire-audio-client-libraries
systemctl --user daemon-reload
systemctl --user --now disable pulseaudio.service pulseaudio.socket
systemctl --user --now enable pipewire pipewire-pulse
systemctl --user mask pulseaudio
systemctl --user --now enable pipewire-media-session.service

Now every time I start the computer I need to run these commands to get things working again:

systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket

I do not want to do this again and again how can I go roll back all these changes

4 Answers4

10

Warning: On some systems the command sudo apt remove pipewire-audio-client-libraries pipewire given in this answer has also removed the ubuntu-desktop package. This has required the following command to rectify: sudo apt install --reinstall ubuntu-desktop.

The following commands helped me:

systemctl --user unmask pulseaudio
systemctl --user --now disable pipewire-media-session.service
systemctl --user --now disable pipewire pipewire-pulse
systemctl --user --now enable pulseaudio.service pulseaudio.socket
sudo apt remove pipewire-audio-client-libraries pipewire
andrew.46
  • 39,359
Andrew
  • 132
5

At least on Ubuntu 22.04, you can't auto start PulseAudio without disabling PipeWire-Pulse, I fixed the PulseAudio autostart by just running this one below.

systemctl --user mask pipewire-pulse.service pipewire-pulse.socket
skyred
  • 201
2

That ppa has a man-page error

To revert this ppa

sudo ppa-purge ppa:pipewire-debian/pipewire-upstream

And check you won't uninstall a lot of packages

0

The other answers seem to deal with a situation where Pipewire was manually installed and needed to be reverted.

Upgrading my install from 22.04 to 24.04 caused the automatic replacement of Pulseaudio with Pipewire, which is causing me problems and isn't improving anything (Pulseaudio was working fine).

So here is what I did to revert to Pulseaudio in Ubuntu 24.04 :

  1. Installing pulseaudio packages. This will uninstall some pipewire-related packages.

sudo apt install pulseaudio pulseaudio-module-bluetooth pulseaudio-utils

and either sudo apt install pavucontrol (for Gnome) or sudo apt install pavucontrol-qt (for KDE).

One might want to remove all pipewire-related packages, but in some cases this causes ubuntu-desktop to uninstall as well. So we just

  1. mask the pipewire services

systemctl --user mask pipewire.service pipewire.socket wireplumber.service wireplumber@.service pipewire-pulse.service pipewire-pulse.socket

It is important to take note of what one does in case one later want to use Pipewire again.

ysalmon
  • 230