Skip to content

Instantly share code, notes, and snippets.

@jmarhee
Last active August 8, 2025 02:34
Show Gist options
  • Save jmarhee/142924a689d4d19ca2f4435e3d0f5497 to your computer and use it in GitHub Desktop.
Save jmarhee/142924a689d4d19ca2f4435e3d0f5497 to your computer and use it in GitHub Desktop.
#!/bin/bash
###
# From https://www.reddit.com/r/Ubuntu/comments/u8uto5/ubuntu_2204_pipewire_setup/
###
###
# Validated for the following configuration:
# ----------
# OS: Zorin OS 17.3 x86_64 (Ubuntu 22.04 base)
# Host: MacBookAir8,1 1.0 (2018 T2 MacBook Air)
# Kernel: 6.16.0-1-t2-noble
###
sudo apt update && \
sudo apt install pipewire-audio-client-libraries pipewire-pulse libspa-0.2-bluetooth -y
systemctl --user --now disable pulseaudio.service
systemctl --user --now mask pulseaudio.service
systemctl --user --now enable pipewire pipewire-pulse pipewire-session-manager
## BUT WAIT, now there are no audio devices being detected.
## I expected touch /etc/pipewire/media-session.d/with-pulseaudio + restart pipewire-session-manager to work. It did not. The following is required:
sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager
echo "NOTE: Set input device to something other than AirPod Max Pro if audio continues to suffer quality issues."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment