Pipewire and Audio isnt working

Hello!

I was on vacation for 2 weeks and hadn’t used my pc. When I came back, I plugged in the display port to my GPU and booted up my pc, then updated my whole system. However, I noticed that the audio was no longer working. I poked around and found out that pulsewire was the issue.

I tried a few things, and checked if alsamixer had the correct configurations and I made sure that everything used the proper audio output source. Then I tried poked around with the sinks and found out that even if I had an application playing sound or music, all the sinks would remain in the suspended sink.

Next I uninstalled pipewire altogether and replaced it with pulseaudio by using the following commands:

sudo pacman -Rdd pipewire pipewire-alsa pipewire-pulse
sudo pacman -S pulseaudio pulseaudio-alsa alsa-utils
sudo pacman -S xdg-desktop-portal xdg-desktop-portal-gtk
sudo pacman -S plasma-pa
systemctl --user enable pulseaudio
systemctl --user start pulseaudio

At first everything was working perfect, and when i’d open spotify music would play fine, and I could listen to audio from my browser. But then, a new issue popped up.

Whenever I click on a youtube video with audio it buffers, when I try to play spotify music I get an error ‘cant play current selection’, when I would click on a video from twitter it kept buffereing and pausing whenever I would try to listen with audio, but when I muted the audio, the video played fine just with no audio. The same thing would happen on youtube, the video would only work when i’d mute the audio.

I tried restarting my pc, and fully shutting it off and turning it back on, but the same issue still arises.

What is my issue here and how do I fix it?

Test either or both:

  • Create a new user account, log into it, and test video and audio playback.
    • If the new user account works as expected, your user settings are the issue.
  • Rename/Remove the ~/.local/state/wireplumber folder and reboot.
    • Removing this folder forces Pipewire/WirePlumber to use the newest default settings for all audio streams/devices.

@planetwool ,
inxi -A
should show
Server-1: PulseAudio v: 17.0-43-g3e2bb status: active
(no Pipewire)
idk but this works for me in Autostart
cat pipe2pulse.sh

#!/bin/bash
systemctl --user stop pipewire.socket
sleep 2
systemctl --user stop pipewire.service
sleep 1
systemctl --user start pulseaudio.service
systemctl --user start pulseaudio.socket

(and when I installed pulseaudio with yay typed y to replace pipewire)
pulsemixer is used to select HDMI output with F3, but it was only my issue.

2 Likes

Thank you so much! That solved it.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.