Fixing the “No sound on Wayland” issue with PipeWire

Why “No sound on Wayland” happens

Wayland is the modern display server that most recent Linux distributions ship with. It replaces Xorg and brings better security, smoother graphics, and a cleaner architecture. However, the audio stack that Wayland expects is PipeWire, not the older PulseAudio. If you upgrade to a new distro or just switch from Xorg to Wayland, you may notice that nothing plays back. The error message “No sound on Wayland” is a quick way to tell you that the audio daemon isn’t running or isn’t configured correctly.

Below is a step‑by‑step guide that covers the most common causes, how to fix them, and how to keep your system secure and stable while you’re at it. The instructions work on Debian‑based, Arch‑based, and Fedora‑based distros, which are the most common choices for beginners and homelab users alike.


1. Verify that PipeWire is installed

Most recent releases ship with PipeWire pre‑installed, but some minimal images or older releases might not. Check the package list:

# Debian/Ubuntu
dpkg -l | grep pipewire

# Arch
pacman -Qs pipewire

# Fedora
rpm -q pipewire

If nothing shows up, install it:

# Debian/Ubuntu
sudo apt install pipewire pipewire-pulse

# Arch
sudo pacman -S pipewire pipewire-pulse

# Fedora
sudo dnf install pipewire pipewire-pulse

pipewire-pulse is the compatibility layer that presents a PulseAudio‑compatible socket to legacy applications.


2. Make sure the PipeWire service is running

PipeWire runs as a systemd user service. Verify its status:

systemctl --user status pipewire

If the service is inactive or failed, start it:

systemctl --user start pipewire
systemctl --user enable pipewire

If you see “Failed to start pipewire.service: Unit pipewire.service is masked”, you might have a conflicting PulseAudio installation that masks the service. Unmask it:

systemctl --user unmask pipewire
systemctl --user start pipewire

3. Check the PulseAudio compatibility layer

Even if PipeWire is running, the legacy PulseAudio socket may be missing. Start it manually:

systemctl --user start pipewire-pulse
systemctl --user enable pipewire-pulse

Verify that the socket exists:

ls -l ~/.config/pulse/native

You should see a client socket file. If it’s missing, the compatibility layer isn’t active.


4. Confirm the audio device is detected

PipeWire relies on the kernel’s ALSA interface. List the devices:

pactl list short sinks

If you get no output, PipeWire isn’t seeing any hardware. Try reloading the ALSA kernel module:

sudo modprobe snd_hda_intel

Replace snd_hda_intel with the appropriate module for your hardware (e.g., snd_usb_audio for USB sound cards). After reloading, re‑run the pactl command.


5. Common pitfalls and how to solve them

Problem Symptom Fix
PulseAudio still running “No sound on Wayland” persists Disable PulseAudio: systemctl --user disable pulseaudio --now
Multiple PipeWire instances Conflicting sockets, random crashes Ensure only one pipewire service is enabled. Use `systemctl –user list-unit-files
Wrong audio profile No output, but pactl shows sinks Switch profile: pactl set-card-profile <card> aplayback
User not in audio group No permissions to access devices sudo usermod -aG audio $USER and log out/in

6. A minimal reproducible test

Create a small script that plays a beep using paplay. This will confirm that the entire stack is functional:

#!/usr/bin/env bash
# test-sound.sh
paplay /usr/share/sounds/alsa/Front_Center.wav

Make it executable and run:

chmod +x test-sound.sh
./test-sound.sh

If you hear the sound, the stack is healthy. If not, check the journalctl --user -xe output for errors.


7. Security considerations

PipeWire runs as a user‑level daemon, which limits its reach. However, it still exposes a socket that applications can connect to. Keep the socket permissions tight:

chmod 700 ~/.config/pulse/native

If you run a container that needs audio, bind‑mount the socket with read‑write permissions only for the container user. Avoid giving root access to the socket unless absolutely necessary.


8. Advanced: Using systemd‑user‑slice for isolation

For homelab setups where you run multiple services per user, you can confine PipeWire to its own slice:

sudo systemctl edit --full pipewire

Add:

[Service]
Slice=pipewire.slice

Create the slice:

sudo mkdir /etc/systemd/system/pipewire.slice
sudo systemctl daemon-reload

This keeps PipeWire isolated from other user services, reducing the attack surface.


9. Troubleshooting checklist

  1. Is the display server Wayland?
    echo $XDG_SESSION_TYPE should output wayland. If it shows x11, you’re still on Xorg.

  2. Does pactl info show “Server String: /run/user/1000/pulse/native”?
    If it shows a different path, the PulseAudio socket is misconfigured.

  3. Are there any pipewire errors in the journal?
    journalctl --user -u pipewire -b will list recent logs.

  4. Is the audio device muted?
    Use pavucontrol (install with sudo apt install pavucontrol) to check volume levels.

  5. Do you have conflicting packages?
    Remove old PulseAudio packages: sudo apt remove pulseaudio.


10. What if you still can’t hear sound?

  • Try a different Wayland compositor (e.g., Sway). Some compositors ship with their own audio integration.
  • Check the kernel logs for hardware errors: dmesg | grep -i audio.
  • Reboot. A fresh boot clears stale sockets and reloads modules.
  • Consult the distro’s bug tracker. Occasionally, a regression in a recent kernel or PipeWire release causes audio failures.

11. Quick reference commands

# Verify PipeWire
systemctl --user status pipewire
systemctl --user start pipewire
systemctl --user enable pipewire

# PulseAudio compatibility
systemctl --user start pipewire-pulse
systemctl --user enable pipewire-pulse

# Check sinks
pactl list short sinks

# Test sound
paplay /usr/share/sounds/alsa/Front_Center.wav

# Add user to audio group
sudo usermod -aG audio $USER

12. Final thoughts

Fixing “No sound on Wayland” is usually a matter of ensuring that PipeWire and its PulseAudio compatibility layer are installed, enabled, and running. Once the stack is up, you’ll enjoy low‑latency audio, better security, and a cleaner system. For homelab users, the same steps apply when you spin up a desktop VM or a headless server that needs audio for media playback or remote desktop sessions.

Happy listening!

See also