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,479
Andrew
  • 132
  • 1
    This actually helped me because when I tried these commands, I realized I never had pipewire-pulse installed. Installing that fixed it for me – Eliezer Miron Nov 23 '22 at 22:58
  • 13
    Running sudo apt remove pipewire also attempted to remove ubuntu-desktop and other core functionality in Ubuntu 22.04, causing the login screen not to come up. – mofojed Aug 03 '23 at 14:19
  • @mofojed aren’t you on 23.04 instead? Pipewire is the default since 22.10, you can’t remove it. – Didier L Aug 04 '23 at 13:56
  • @DidierL Nope, I'm on 22.04. Not sure why it removes ubuntu-desktop as well. – mofojed Aug 04 '23 at 17:00
  • 7
    I'd like to caution anyone against running this set of commands without reviewing everything they do. This removed ubuntu-desktop from my pc and I had to fix it all from the command line because the computer crashed on running these commands – kepler-22 Nov 01 '23 at 19:22
  • 2
    As others have noted, these commands remove ubuntu desktop and some gnome packages leaving you with no desktop GUI. – Craicerjack Jan 25 '24 at 10:45
  • If settings and stuff stop working. This: sudo apt-get update sudo apt-get install --reinstall ubuntu-desktop – Haider Malik Jun 28 '24 at 16:24
  • @mofojed Thanks for your near-top comment. Thanks to you I noticed what had happened, and was able to reinstall everything it removed while the list was still on the screen. Other than pipewire :) Rebooted and all was well stutter was gone.

    Problem was solved but def the wrong way.

    – tsilb Aug 03 '24 at 17:43
  • 1
    WARNING: Running this bricked my laptop! I had to run sudo apt install --reinstall ubuntu-desktop in order to restore it. – isapir Sep 12 '24 at 21:49
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

1

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
  • 240