r/voidlinux • u/jgpq • Mar 21 '26
solved audio suddenly got broken
This was a regular spring morning. I just wanted to start up my PC and get to my tasks, but no, pipewire suddenly decided to break. *sigh* Can somebody please help me with those errors? I am not good with tech, so I don't understand what they mean.~ $ pipewire
[E][15:04:33.087273] mod.protocol-native | [module-protocol-: 790 lock_socket()] server 0x55b7e84fcb80: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][15:04:33.087372] pw.conf | [ conf.c: 602 load_module()] 0x55b7e84b91d0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][15:04:33.088366] default | [ pipewire.c: 124 main()] failed to create context: Resource temporarily unavailable
1
u/Ill_Ad4867 Mar 21 '26
use pipewire & wireplumber & pipewire-pulse
1
u/Duncaen Mar 21 '26
Your logs are kind of useless since they just say that you are already running pipewire. You have to stop existing instances from running if you want to run them manually to observe the log.
1
u/Xbot781 Mar 21 '26
How are you starting pipewire? And have you configured pipewire to start wireplumber and pipewire-pulse automatically or are you starting them manually?
1
u/Other_Abalone_3203 Mar 22 '26
https://old.reddit.com/r/voidlinux/comments/1rywcsv/mpv_and_pipewire_issues_after_update/
This might help you
1
u/Duncaen Mar 21 '26
From the log it looks like pipewire is already running.
1
u/[deleted] Mar 21 '26 edited Mar 21 '26
Se você se sentir seguro o bastante para usar o terminal, sugiro remover a instalação atual e reinstalar, execute os comando um de cada vez:
$ sudo xbps-remove pipeware pipeware-pulse wireplumber
$ rm /var/service/pipeware
Instalando Pipeware com tudo o que precisa, inclusive bluetooth
$ sudo xbps-install -Su
$ sudo xbps-remove pulseaudio alsa-plugins-pulseaudio
$ sudo xbps-install -S pipewire wireplumber alsa-pipewire libjack-pipewire libspa-bluetooth pavucontrol
$ sudo mkdir -p /etc/pipewire/pipewire.conf.d
$ sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/
$ sudo ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/
Configurando Pipeware
$ mkdir -p ~/.config/autostart
$ ln -s /usr/share/applications/pipewire.desktop ~/.config/autostart/
$ ln -s /usr/share/applications/pipewire-pulse.desktop ~/.config/autostart/
$ ln -s /usr/share/applications/wireplumber.desktop ~/.config/autostart/
$ sudo mkdir -p /etc/alsa/conf.d
$ sudo ln -s /usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/
$ sudo ln -s /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
Entre no arquivo:
$ sudo vim /etc/pulse/client.conf
Descomente e altere a linha:
; autospawn = yespara
autospawn = noSalve e saia.
Reinicie ou encerre a sessão e logue novamente.
Qualquer provável problema com áudio do Pipewire, basta entrar no diretório /etc/pipewire/pipewire.conf.d/:
$ cd /etc/pipewire/pipewire.conf.d
E apague todos .conf que ali estiverem, por exemplo, 10-wireplumber.conf e 20-pipewire-pulse.conf:
$ sudo rm 10-wireplumber.conf
$ sudo rm 20-pipewire-pulse.conf
e deslogue e logue na sessão ou reinicie.